Tru64 V5.1 lpd how to filter printjobs for remote printers

From: Thomas Voegeli <tv.pop_at_zuvrz.unizh.ch>
Date: Thu, 22 Nov 2001 16:03:17 +0100

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
Received on Thu Nov 22 2001 - 15:04:07 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT