From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1884e10155267dc6 X-Google-Attributes: gidfee84,public From: Jack Patteeuw Subject: Re: lpr & PCL Escape Sequence Date: 2000/02/16 Message-ID: <38AAE1F8.F12C91D9@ford.com>#1/1 X-Deja-AN: 588522660 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: Ford Motor Company Mime-Version: 1.0 Reply-To: patteeuw@pt9500.pcse.poee.ford.com Newsgroups: comp.unix.osf.osf1 Steve Martinez wrote: > My question is, does UNIX have any type of utility we can use in conjunction > with the lpr command to accomplish this? I've read a little about filters, > but I am new to UNIX and don't understand them. Compaq to the rescue !!! A little advertised utility showed up in V4.0F taht will solve some/much/all of your problem. It is pcfof. There is ***VERY LIMITED*** documentation on it (check the man page as well as the Sys Admin book). It is table driven and Compaq has supplied some "example" tables in /usr/lbin/pcf. I had to "tweak" them a bit, but at least my HP laserjet 4 and 5's can do Portrait and Landscape and Simplex and Duplex (-K) but it doesn't seem to handle Number Up (-N). Here are my printcap entries poee_ev159:\ :ct=tcp:\ :lp=@pt1784.poee.ford.com/hplaserjet:\ :sd=/var/spool/poee_ev159:\ :lf=/var/adm/poee_ev159.log:\ :if=/usr/lbin/pcfof -K2 +Chplj4si.pcf:\ :of=/usr/lbin/pcfof +Chplj4si.pcf:\ :pw#0:\ :pl#66:\ :mx#0: poee_ev159_landscape:\ :ct=tcp:\ :lp=@pt1784.poee.ford.com/hplaserjet:\ :sd=/var/spool/poee_ev159_lnadscape:\ :lf=/var/adm/poee_ev159.log_landscape:\ :if=/usr/lbin/pcfof -K2 +Chplj4si_landscape.pcf:\ :of=/usr/lbin/pcfof +Chplj4si_landscape.pcf:\ :pw#0:\ :pl#66:\ :mx#0: Jack