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/04 Message-ID: <38725431.E9502406@dassic.com>#1/1 X-Deja-AN: 568302867 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: Department of Abuse X-Trace: news.inet.tele.dk 947018806 27292 195.249.165.37 (4 Jan 2000 20:46:46 GMT) Organization: Dassic Mime-Version: 1.0 NNTP-Posting-Date: 4 Jan 2000 20:46:46 GMT Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Mustafa Demirbilek wrote: > > I have an application that produces aoutput for a dot matrix printer. Some > characters have to be replaced before they are sent to the printer. I tried > to add lines to /etc/printcap (if, of, etc) but could not succeed. > > Does anybody have experience with filters? Sure. If the printer is a remote printer, filtering won't work with if/of. The trick in this case is (or can be) to make two queues, a local fake and the real remote. Print to the local and let it call a if/of script that translates the characters, and then at then end prints the result to the remote queue. It's ugly but it works. If you need to make a general solution, you can transfer parameters to the if script using the af option. It's not intended for this use, but again... it works. It'll show up as paramter $8 in the if script. If you need an example I can post one. I have a ES40 cluster with about 400 printers configured like this. I've never quite understood why if/of doesn't work with remote queues, anyone ? Will Advanced Printing solve some of these issues ? l8r/Jspr