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
LPD Printing from SYS V Unix
Here is an example for setting up the System V spooling system (for example, Linux, Solaris,
etc.) to print to the Terminal Server LPD daemon. This assumes that you will print to a port
configured like the example above on an 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.
If the lpsystem command is not performed, the lpadmin command will return an error
indicating that the system named in the -s parameter does not exist even though the system
is listed in the /etc/hosts file.
LPD printing from AIX
Use SMIT to configure remote printer.
LPD printing from HP/UX
Use SAM to configure remote printer.
Terminal Server User Guide
Using LPD
Note
Although it is possible to create a printer spool on the Terminal Server, UNIX lpd
queues only print one job at a time. The host will wait for one job to complete
before spooling the second so all jobs will go to the same queue and print from the
same port.
Hint
Hunt groups are supported on the Terminal Server for printing. To use
this, use the same queue name in the Terminal Server Port Setup
name field.
Page 104
Chapter 8 Printing