*BSD News Article 47708


Return to BSD News archive

#! rnews 1637 sserve.cc.adfa.oz.au
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!informatik.uni-bremen.de!nordwest.pop.de!news.hamburg.pop.de!news.gun.de!knobel.gun.de!not-for-mail
From: andreas@knobel.gun.de (Andreas Klemm)
Newsgroups: comp.unix.bsd.misc
Subject: Re: Printcap filters question
Date: 23 Jul 1995 19:35:03 GMT
Organization: Solaris 2.4 research kitchen
Lines: 20
Message-ID: <3uu897$b5@knobel.gun.de>
References: <3u0hjg$j0g@jeeves.niehs.nih.gov> <id.CUJL1.3N2@nmti.com> <3uljru$dpo@msunews.cl.msu.edu> <id.R9SL1.MJ9@nmti.com>
NNTP-Posting-Host: knobel.gun.de
X-Newsreader: TIN [UNIX 1.3 950520BETA PL0]

Peter da Silva (peter@nmti.com) wrote:
: You don't put the rm and rp on the printer with the filter set (it's a local
: pinter, printing to /dev/null), you put it on the remote printer:
: 
: lp|local:...:of=/usr/local/lib/filter:...:
: remote:rm=them:rp=lp:...
: 
: The /usr/local/lib/filter script munges the print job as needed then feeds it
: to "lpr -Premote ...".

Could one pipe the data from within the filter script through
telnet rm-printer ??? If this would work you would only need one
printer entry. Long ago I saw such things in a script. Dunno
exactly if you needed a suitable C program as driver ...

--				
andreas@knobel.gun.de        /\/\___    Wiechers & Partner Datentechnik GmbH
   Andreas Klemm         ___/\/\/          - Support Unix - akl@wup.de - 
     (at home)                          phone: +49 2173 3964 -161  fax: -222
apsfilter - irgendwie clever <--> sunsite.unc.edu /pub/Linux/Incoming/aps-49.tgz