tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Thomas Voegeli <tv.pop () zuvrz ! unizh ! ch>
To: tru64-unix-managers
Subject: Summary: (Again:) Tru64 V5.1 lpd how to filter printjobs for remote
Date: Tue, 11 Dec 2001 13:32:56 +0000	[thread overview]
Message-ID: <102653644221668.tru64-unix-managers.marc@archive.invalid> (raw)

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:\
    :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

                 reply	other threads:[~2001-12-11 13:32 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