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

Sorry - there is a missing line in "Summary: (Again:) Tru64 V5.1 lpd how
to filter printjobs for remoteprinters".
Here comes the correct version!

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:\
    :lp=:\                     <=== if this entry is missing lp will
cause a core dump
    :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

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

only message in thread, other threads:[~2001-12-11 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-11 13:44 Summary 2: (Again:) Tru64 V5.1 lpd how to filter printjobs for Thomas Voegeli

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