From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221668.tru64-unix-managers.marc@archive.invalid> From: Thomas Voegeli Date: Tue, 11 Dec 2001 13:32:56 +0000 To: tru64-unix-managers Subject: Summary: (Again:) Tru64 V5.1 lpd how to filter printjobs for remote X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221668 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:\ :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