From: Thomas Voegeli <tv.pop () zuvrz ! unizh ! ch>
To: tru64-unix-managers
Subject: Tru64 V5.1 lpd how to filter printjobs for remote printers
Date: Thu, 22 Nov 2001 15:03:17 +0000 [thread overview]
Message-ID: <102653643321918.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~2001-11-22 15:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox