HP (Hewlett-Packard) M208 Switch User Manual


 
48 CONFIGURING THE M208 FOR TCP/IP: Host Configuration
To create the necessary entries for this example, these commands are needed:
cd /usr/spool/lpd
mkdir spike
mkdir spike/ps
touch spike/ps/log spike/ps/acct
chown -R daemon.daemon spike
chmod -R g+rwX,o+rX spike
Once this is done, you can then start this printer.
lpc start ps
To send a print job, use this syntax:
lpr -P
printername filename
BSD Interface Script Printing
If you decide not to go with a remote printer setup, you can use an interface file
instead. This interface script is specified in /etc/printcap with the if= entry instead of
the rm= and rp= entries. The script is called by the lpd daemon with the following
syntax:
nprbsd.if -w
width
-l
length
-i
indent
-n
login
-h
host acct_file
where:
nprbsd.if Name of the interface script.
width Width of page in characters.
length Length of page in lines.
indent Number of characters of indent from left margin.
login Login name of person originating the print request.
host Name of host where the print job originates.
acct_file File where accounting data is stored.
Setting up an Interface Script
To manually set up your host with an interface file, you need to add an entry to the
/etc/printcap file and then create and edit its associated files and directories.
Here is an example of what the printcap entry should look like followed by a descrip-
Syntax
Syntax