tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Tru64 V5.1 lpd how to filter printjobs for remote printers
@ 2001-11-22 15:03 Thomas Voegeli
  0 siblings, 0 replies; only message in thread
From: Thomas Voegeli @ 2001-11-22 15:03 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-22 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-22 15:03 Tru64 V5.1 lpd how to filter printjobs for remote printers Thomas Voegeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox