Black Box 37687 User And Administration Manual page 69

Terminal
Hide thumbs Also See for 37687:
Table of Contents

Advertisement

LPD Printing
from SYS V Unix
To overcome this the local host must perform all of the
necessary changes and then send these to the terminal
server. Defining a printer queue as in the previous examples
can do this.
If filtering or formatting is required then a local linking print
queue needs to be created. This would be something like
the following:
# Lcl q to link to term_serv LPD Printer on port 16
link-Laser1| TSERVER LPD Printer 16:\
:lp=/dev/null:sf:sd=/usr/spool/LPD/Laser1:\
:lf=/usr/spool/LPD/LPD_printer/log\
:of=/etc/TSERVER/link-Laser1:
The shell script output file link-Laser1 has the contents:
#!/bin/sh
lpr –PLaser1
This would be sufficient to print a header page and perform
form feeds. If a specialised filter program is required for
something like a plotter then the script may look something
like the following:
#!/bin/sh
/usr/local/filter '$@' | lpr –PLaser1
Here is an example for setting up the System V spooling system
(i.e. Linux, Solaris, etc.) to print to the LPD daemon. This
assumes that you will print to a port configured like the
example above on a Terminal Server called term_serv.
lpsystem -t bsd term_serv
lpadmin -p Laser1 -s term_serv
If the terminal server is not defined in the /etc/hosts file you
may not get an error message from either the lpsystem or
lpadmin commands, but the printer will not print.
Printing
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

4087040871418723768841874

Table of Contents