From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,f048e8ebac1341dd X-Google-Attributes: gidf8c9b,public X-Google-Thread: 1020c6,f048e8ebac1341dd X-Google-Attributes: gid1020c6,public X-Google-Thread: f678f,f048e8ebac1341dd X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,f048e8ebac1341dd X-Google-Attributes: gidfee84,public From: Emmanuel Choquet Subject: Re: filtering jobs sent to a remote machine Date: 1998/04/08 Message-ID: <352B1EED.5C8BA250@cica.fr>#1/1 X-Deja-AN: 341979902 Content-Transfer-Encoding: 7bit References: <3528F993.8DB6579C@bbsrc.ac.uk> To: bob.findlay@bbsrc.ac.uk Content-Type: text/plain; charset=us-ascii Organization: IC/S&C Mime-Version: 1.0 Reply-To: ics@cica.fr Newsgroups: comp.unix.admin,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.questions bob.findlay@bbsrc.ac.uk wrote: > Hello, > I want to be able to filter a printer's jobs. The problem is, that I > want to filter on machine A (OSF), but the queue is actually on machine > B (NT). Does anyone know how I can fool printcap into filtering the job > and then passing it on to the NT machine? I'm using lpr > > thanks (in hope) > Bob Findlay Not from me ,but got it some time ago in this news group, works well, I did it several times. : From: schroedj@ub.uni-marburg.de (Juergen Schroeder) The lack of filtering by printing remote is usual in most unix (lpd) types. This can't be elegant overided by a old but not well known trick: make a printqueue which print raw to the remote printer make multiple printqueues for the features you want have eg one called landscape this should have this entries in the printcap: :if=/usr/local/daemon/filter/input_filter_landscape:\ :lp=/dev/null:\ make the filter input_filter_landscape (echo "here the esc-sequences for initialising the printer & landscape mode" cat - ) | lpr -Praw thats all you can make this queues if you want on only one machine and print remote to this machine. No fiddeling with lpd source code. -- Emmanuel Choquet Informatique Client/Serveur & Communication _/ _/ _/ _/_/_/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/_/_/ _/ _/_/_/ ics@cica.fr c/o Cica Tel: (33) 4 92.94.23.50 2229, route des cretes fax: (33) 4 92.94.23.54 06560 Sophia-Antipolis