*BSD News Article 68281


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!newsfeed.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!uwm.edu!lll-winken.llnl.gov!nntp.coast.net!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Remote printing through a filter
Date: 11 May 1996 12:16:08 GMT
Organization: Private BSD site, Dresden
Lines: 21
Message-ID: <4n20e8$rjj@uriah.heep.sax.de>
References: <4msi2t$1ov@anorak.coverform.lan>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

brian@awfulhak.demon.co.uk (Brian Somers) wrote:

> Is there a good reason that lpd doesn't use an output filter for a
> remote printer ?  If not, the following patch to
> /usr/src/usr.sbin/lpr/lpd/printjob.c will allow it:

I don't know if there's a _good_ reason, but it's been this way as
long as i know lpd.  Maybe this is since the authors of lpd had some
sort of printer accounting capabilities in mind, which concentrated on
the output filter for each printer.

The usual workaround was to provide a local pseudo-printer that is
hooked to a script (via if=) which in turn calls lpr again with the
raw (possibly remote) printer.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)