From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,cfd3c0f3ef35ca8e X-Google-Attributes: gidfee84,public From: Juergen Schroeder Subject: Re: if for remote printer local defined Date: 1998/08/26 Message-ID: <6s17g8$1lo$1@surz18.HRZ.Uni-Marburg.DE>#1/1 X-Deja-AN: 384935113 References: <904118947.620371@news.vbs.at> <6s10ln$oj7$1@lead.zk3.dec.com> Organization: HRZ Uni Marburg User-Agent: tin/pre-1.4-971106 (UNIX) (OSF1/V4.0 (alpha)) Newsgroups: comp.unix.osf.osf1 Ernest LaBonte wrote: : Erhard Glueck wrote: :> I need a inpufilter on a specific computer for a remote printer (DEC-Alpha :> OSF1) :> There is a description for LINUX in the german paper c't 17 1998. :> But it doesn't function. :> If I'm not in the right news-group for this question please tell me an other :> :> Thank you for an answere :> :> Erhard Glueck, RTS GmbH A-1100 Wien (gle@rts.co.at) : ------ : Digital UNIX does not use print filters in a remote lpd print environment. : You will need to preformat the file prior to printing. Its like Ernest say, like most lpr systems. The old trick is to get a input filter to work is to use a _local_ dummy printer /dev/null in the /etc/printcap. Then the lpd runs the input filter ... Use a filter programm (/usr/local/daemon/filter/if_a2ps below) which catchs stdin and reformat it and send it to the remote printer (raw). ps|a2ps:\ :if=/usr/local/daemon/filter/if_a2ps:\ :lf=/usr/adm/lperr:\ :lp=/dev/null:\ :mx#0:\ :sd=/usr/spool/lpd/a2ps:\ raw|lp1|unix:\ :lf=/usr/adm/lperr:\ :lp=:\ :rm=pcubXX.ub.uni-marburg.de:\ :rp=unix:\ :sd=/usr/spool/lpd/raw:\ :sh:\ :mx#0: A minifilter #!/bin/sh cat - | lpr -Praw Hope this helps Juergen