Sorry - there is a missing line in "Summary: (Again:) Tru64 V5.1 lpd how
to filter printjobs for remoteprinters".
Here comes the correct version!
The question was:
How to locally filter printjobs for remote printer if printer only
accepts the lpd protocol.
The solution below was implemented on Tru64 Unix prior to Version 5 but
did no longer work on V5.1:
printcap entry:
---------------
lp0|testp:\
:lp=/dev/null:\
:sd=/usr/spool/lp0:\
:if=/usr/local/bin/localfilter:
lp1|remoteprinter:\
:lp=:\ <=== if this entry is missing lp will
cause a core dump
:rm=remoteprinteraddress:\
:rp=raw:\
:sd=/usr/local/spool/lp1:
localfilter:
-------------
cat /usr/lbin/extrafile - | lpr -h -Premoteprinter && exit 0 || exit 2
Why it did not work on Tru64 V5.1 and how to get it work again
------------------------------------------------------------------
lpd under Version v5.1 has a bug which prevents it from printing to
/dev/null (but it would still print to /dev/console). So lpd needs to be
replaced.
Compaq has fixed the bug in patch kit 4 (attention, compaq told me that
patch kit 4 has bugs in vrestore and in cluster environments).
We now use a lpd from Tru64 V5.0 (attention, some versions of lpd dont
print to /dev/null).
Alternatively you could extract lpd from patch kit 4.
If the printer accepts tcp/ip printing instead of lpd, you better set up
one tcp/ip queue, instead of the two lpd queues.
TCP/IP printing (also known as telnet printing) allows local filtering.
Thanks to all who helped and sorry for the delayed summary.
Thomas Voegeli
Received on Tue Dec 11 2001 - 14:03:58 NZDT