From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,eceae65b1b523b82 X-Google-Attributes: gidfee84,public From: Juergen Schroeder Subject: Re: Help with print filters Date: 1998/12/10 Message-ID: <74ost3$9vo$1@surz18.HRZ.Uni-Marburg.DE>#1/1 X-Deja-AN: 420844463 References: <74mfoj$gs2$1@nnrp1.dejanews.com> <74on8e$30p$1@lead.zk3.dec.com> Organization: HRZ Uni Marburg User-Agent: tin/pre-1.4-980226 (UNIX) (Linux/2.0.35 (i686)) Newsgroups: comp.unix.osf.osf1 Ernest LaBonte wrote: : gabriel_ronin@my-dejanews.com wrote: :> Does anyone know where I can find an example print filter that is not [..] : However as Juergen Schroeder noted print filters are not used in a : remote print environment. Tcp/ip socket printing has been available Sorry Ernest, I sayed that input filters were ignored by remote printers. But one can use filters also for remote printers, the only trick is to set in the printcap the print device to /dev/null (a local printer ;-) and forwards the output of the local queue to a remote (second) printer queue. Thats the filter: #!/bin/sh ( echo \\033\E\\033\&l0O\\033\&l6D\\033\&l70P\\033\&l2E\\033\&l66F echo \\033\&k2G\\033\(s12H\\033\&a12L\\033\&l0S\\033\(0N cat - echo \\033%-12345X ) | lpr -P remote_printer BTW The question has been a uncompiled script as filter, if one uses a2ps or the apsfilter packages everything is possible (also on dunix). Juergen