Return to BSD News archive
Newsgroups: comp.unix.bsd.misc Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!howland.reston.ans.net!europa.chnt.gtegsc.com!cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!news.sesqui.net!uuneo.neosoft.com!nmtigw!peter From: peter@nmti.com (Peter da Silva) Subject: Re: Printcap filters question Message-ID: <id.R9SL1.MJ9@nmti.com> Sender: peter@nmti.com (peter da silva) Organization: Network/development platform support, NMTI References: <3u0hjg$j0g@jeeves.niehs.nih.gov> <id.CUJL1.3N2@nmti.com> <3uljru$dpo@msunews.cl.msu.edu> Date: Thu, 20 Jul 1995 18:59:29 GMT Lines: 22 In article <3uljru$dpo@msunews.cl.msu.edu>, uid no access <behrooz@egr.msu.edu> wrote: > In article <id.CUJL1.3N2@nmti.com> peter@nmti.com (Peter da Silva) writes: > >What I do in this case is set up a local printer to /dev/null, with a > >filter program that feeds the file to the remote printer after whatever > >massaging is necessary. > But aren't filters ignored when you have a :rm and :rp? 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 ...". -- Peter da Silva (NIC: PJD2) `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Har du kramat din varg idag?"