From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f4f8137c92629637 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,f4f8137c92629637 X-Google-Attributes: gidf678f,public From: Jesper Frank Nemholt Subject: Re: Printer filter Date: 2000/01/10 Message-ID: <387A4580.1967B38C@dassic.com>#1/1 X-Deja-AN: 570861008 Content-Transfer-Encoding: 7bit References: <38725431.E9502406@dassic.com> <38735283.651B2E84@zk3.dec.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: Department of Abuse X-Trace: news.inet.tele.dk 947537935 28251 195.249.165.20 (10 Jan 2000 20:58:55 GMT) Organization: Dassic Mime-Version: 1.0 NNTP-Posting-Date: 10 Jan 2000 20:58:55 GMT Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 LaBonte wrote: > > If the printer has a network interface you can probably use tcp/ip > printing, provided in V4.0a, eliminating the need for two queues. > A tcp/ip print queue looks similar to a parallel port queue with the > exception of LP. For example: > > :lp=@printer.name.com/port_9100:\ > > Port_9100 is defined in the /etc/services file. ie: > > port_9100 9100/tcp > > FYI, 9100 is the port/socket number used for HP and Lexmark printers. > > Using this setup you have a direct network connection to the printer with > full print filter functionality. Printcap example: Should I understand this as filtering _only_ works when defining a remote printer as a TCP/IP printer with portnumber ? I have tried filtering on remote printers, but I don't remember if I've tried with TCP/IP printers, so I'll try that again. In your example you use both a if and a of filter... I've seen this in examples too, but I'm not sure I understand why... can you explain why I need to define a filter both as if and of ? My printers look like this right now : vojens1|VOJENS1:\ :lf=/usr/adm/lpd/vojens1.err:\ :lp=/dev/null:\ :sh:\ :sd=/usr/spool/lpd/vojens1:\ :if=/usr/local/bin/printfilter.sh:\ :af=vojens1_filtreret.dde1070: vojens1_filtreret:\ :sh:\ :lf=/usr/adm/lpd/vojens1_filtreret.err:\ :ct=tcp:\ :lp=@vojens1/dde_nct2_2070:\ :sd=/usr/spool/lpd/vojens1_filtreret: I use the af part to tell the script what printer (stuff before the dot) to print to when the data is filtered, and what kind of printer (stuff after the dot) it is, so the filter (/usr/local/bin/printfilter.sh) know what to do. The printfilter is a custom written script that does alot of stuff to the data running thru. I'd _really_ like to get rid of the dummy queue. l8r/Jspr