User`s guide
QMS LPD (Line
Printer
Daemon)
7-25
UNIX Utilities
» Note:
For systems running the Domain Name Service (DNS), this
Internet address/node name pairing should also be added to the DNS
administrative database files. (See your UNIX documentation for
more information.)
Modifying the Printcap Entry
The printer capability file is normally /etc/printcap. The UNIX lpr com-
mand looks for this file each time a print request is made. Therefore,
there must be an entry in this file corresponding to the printer’s
TCP/IP network node name in the TCP/IP host table. For example, if
you use the same node name as in the previous example, “qms,” you
would add the following entry to the /etc/printcap file.
QMS|QMS Printer:\
:lp=:\
:sd=/usr/spool/
anyqueue
:\
:rm=qms:\
:rp=
anyqueue
In this entry, QMS is the host queue name, lp specifies the device to
which you are printing (it is undefined here since you are printing
remotely), sd stands for “spool directory,” qms is the name of the
printer (rm stands for “remote machine”) in the host’s TCP/IP host
table (identified in the previous section), and
anyqueue
is the printer
queue name (rp stands for “remote printer”).
Using LPD
Once you have modified the necessary host files, you can use the UNIX
lpr command to print a file (and take advantage of the QMS LPD):
lpr -PQMS
filename
↵
“QMS” is the host queue name you specified in the /etc/printcap file. If
the -P option is not used, lpr uses the printer specified in the
PRINTER environment variable or the default lp.
The QMS LPD observes the spooling options (Spooling On, Spooling
On Input Idle, and Spooling On Idle) currently set in the Administra-
tion/Communications/
xxxxxxxx
NIC/CrownNet/Common/Spooling
printer menu (where
xxxxxxxx
is either Resident or Optional).