From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653643321918.tru64-unix-managers.marc@archive.invalid> From: Thomas Voegeli Date: Thu, 22 Nov 2001 15:03:17 +0000 To: tru64-unix-managers Subject: Tru64 V5.1 lpd how to filter printjobs for remote printers X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653643321918 Hi Managers, I have to filter print jobs directed to remote printers. Because this is not supported by lpd on Tru64 unix I implemented the following solution: 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 This worked well with Tru64 Unix 4.0F but it does not work with Tru64 Unix 5.1. On Unix 5.1 printqueue lp0 seems to hang and at the lpr.log I can see the message ERROR -- close_trace: close(1) failed -- print queue may hang, error: Connection reset by peer Any ideas how I can filter printjobs forn nonlocal printers on Tru64 v5.1? Tank you Thomas Voegeli