Technical data

Setting Up and Managing the LPR/LPD Print Service
22.3 Configuring Printers
Table 22–3 (Cont.) Printcap Symbols
Symbol Description
nd /NODELETE flag. Specifies that the temporary file created in TCPIP$LPD
for an inbound print job will not be deleted after printing. By default, these
temporary files are deleted after printing.
cr Not supported by TCP/IP Services.
p1-p8 Equivalent to the PRINT/PARAMETER qualifier on the DCL command line.
You can specify up to eight optional parameters that are unique to the print
symbiont. If the DECprint Supervisor software is running on the system, enter
HELP PRINT_PARAMETER for information about the available parameters.
To make the printcap entries easier to read, use one symbol per line, placing a
colon (:) at the start of each line and a colon and backslash (:\) at the end of the
line to separate the symbols. The last printcap entry ends with a colon (:).
The following sample is an entry from the printcap database that identifies a
local printer.
#
LOCAL1|local1:\
:lf=/SYS$SPECIFIC/TCPIP$LPD/LOCAL1.LOG:\
:lp=LOCAL1:\
:sd=/SYS$SPECIFIC/TCPIP$LPD/LOCAL1:\
:nd:
The following sample is a printcap entry that identifies a remote printer:
#
REMOTE1|remote1:\
:lf=/SYS$SPECIFIC/TCPIP$LPD/REMOTE1.LOG :\
:rp=REMOTE1 :\
:rm=hermes :\
:sd=/SYS$SPECIFIC/TCPIP$LPD/ :
22.3.1.1 Setting Up Print Spool Directories
Each printer must have its own spool directory located under the
SYS$SPECIFIC:[TCPIP$LPD] directory. The spool directory acts as a printer’s
spooling queue; it contains the files that are queued for printing on that particular
printer. A printer spool directory should have the same name as the printer
reference name and must be located on the machine to which the printer is
attached. Specify the directory using a UNIX-style path name.
Each printer should specify a spool directory even if the printer is connected to
another machine or is on another network. You specify a spooling directory in the
printcap database with the
sd
symbol. For example:
:sd=/SYS$SPECIFIC/TCPIP$LPD/LOCAL1:\
22.3.1.2 Setting Up Error Logging
The LPD records printer errors in a log file located in the
SYS$SPECIFIC:[TCPIP$LPD] directory. You can set up a separate log file for
each printer, or you can set up one to be shared by all local printers.
To specify the log file in the printcap database, use the symbol
lf
and specify the
directory as a UNIX path. For example, to specify a log file for the print queue
named LOCAL1, the printcap entry would be as follows:
:lf=/SYS$SPECIFIC/TCPIP$LPD/LOCAL1.LOG:\
Setting Up and Managing the LPR/LPD Print Service 22–9