From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5e33afa27906d9d2 X-Google-Attributes: gid1164f8,public From: Angelo MAGGIORA Subject: Re: Using filters with lpd Date: 1996/10/02 Message-ID: <32528376.3F54@to.infn.it>#1/1 X-Deja-AN: 186725431 references: <324C66B9.50DE@scrtec.rtec.org> cc: maggiora@to.infn.it content-type: text/plain; charset=us-ascii organization: infn mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 3.0Gold (X11; I; OSF1 V3.0 alpha) Gregory Neil Shapiro wrote: > > craig> 1) Does anyone know why this wouldn't work? I know I'm probably not > craig> providing enough info, but does anyone have any suggestions? > craig> 2) Why, if I know the filter is not sending anything through, does > craig> output still get sent to the printer? > > craig> printcap: > craig> --------- > craig> # LaserWriter 16/600 PS in Dole 3090 > craig> lp|lp0|0|spedlab:\ > craig> :lf=/var/adm/lperr:\ > craig> :lp=:\ > craig> :of=/usr/lib/filters/lf2crlf:\ > craig> :rm=spedlab:\ > craig> :rp=spedlab:\ > craig> :sd=/var/spool/spedlab: > >> Remote printer queues don't run filters on the local machine. The filter will >> have to be placed on spedlab. The suggested solution is impossible if the printer has a built-in TCP/IP inteface like HP LaserJet 4M. To solve the problem install enscript, the gnu version of Adobe TranScript, written by Markku Rossi, and redefine the commands lpr using an alias like: alias lpr '/usr/local/bin/enscript --fancy-header=a2ps -DDuplex:true -Z $*' see the manual for definitions. With -Z enscript work as a filter for ascii and postscript files and $* pass the lpr parameter to enscript. -- _\|/_ _____________________________oOO__@!@__OOo_________________________ / / /\ / / / ___/ /\ / / Angelo MAGGIORA / / / \/ / / / / \/ / INFN - Via P. Giuria 1 / / / /\ / / __/ / /\ / 10125 Torino - Italy / / / / \/ / / / / \/ tel: ++39 11 6707 418/415 ISTITUTO NAZIONALE fax: ++39 11 6699 579 FISICA NUCLEARE e-mail: maggiora@to.infn.it