45
For example, an Printer named “honolulu” is given a second printcap entry with the name
“honolulu_text.” The UNIX machine named “mercury” acts as a master spooler. UNIX
machines around the network forward text jobs to mercury:
honolulu_text:\
:lp=:rm=mercury:rp=honolulu_text:\
:sd=/var/spool/lpd/honolulu_text:mx#0:\
:lf=/var/adm/lpd-errs:
Mercury uses the input filter texttcpif to process the print job and then sends it to the
printer:
honolulu_text:\
:lp=/dev/null:if=/usr/local/bin/texttcpif_honolulu:\
:sd=/var/spool/lpd/honolulu_text:mx#0:\
:lf=/var/adm/lpd-errs:
Using
tcpof
The tcpof filter is an output filter that enables you to append a cover page to the front of
pcl print jobs. In the example below, the previous printcap entry has been edited to include
processing by the tcpof filter.
honolulu_text:\
:lp=/dev/null:if=/usr/local/bin/texttcpif_honolulu:\
:of=/usr/local/bin/tcpof_honolulu:\
:sd=/var/spool/lpd/honolulu_text:mx#0:\
:lf=/var/adm/lpd-errs:
For details on how to compile tcpif, tcpof, unix_pcl, and texttcpif and configure them for
your installation, refer to the Makefile located in the Filters folder on the this CD-ROM.
Using telnet with the Printer
The TCP/IP software includes a telnet server that enables you to use telnet client, a standard
protocol for remote login, to connect to the Printer. The telnet server accepts connections
from telnet clients and connects the remote user to the printer’s PostScript interpreter.