From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079079016223.tru64-unix-managers.marc@archive.invalid> From: Robert Carsey Date: Thu, 21 Oct 1999 03:01:58 +0000 To: tru64-unix-managers Subject: SUMMARY: pcfof and printcap file X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079079016223 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------68EEF6057BE8ADF800925382" This is a multi-part message in MIME format. --------------68EEF6057BE8ADF800925382 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit This question was concerning print filters and why they wouldn't work at all for me except from the command line. I should have known better, but... There are four types of printers. local, lat, tcp, and remote. Local and LAT being self explanatory, remote printcap entries do pretty much NO processing (it just sends the job over to the rm= and rp=), while tcp is what you would use when the printer is 'connected' directly to the UNIX machine over TCP. ct=tcp is exactly like ct=local with the difference being that instead of a direct serial/parallel port connection, you are connected through TCP. Also, when you set up a TCP printer, it appears as if you _need_ to have a name (not IP address) and a service (utilizing /etc/services, not just a port #), in your lp= line. Here is what I _FINALLY_ have (and it works like a champ too): where testprinter is an entry in /etc/hosts and hpprinter is an entry in /etc/services test:\ :ct=tcp:\ :if=/usr/lbin/pcfof +Chplj4mplus.pcf +Iupper:\ :lf=/usr/spool/lpd0/hp4lf.txt:\ :lp=@testprinter/hpprinter:\ :mx#0:\ :of=/usr/lbin/pcfof +Chplj4mplus.pcf +Iupper:\ :pl#70:\ :pw#0:\ :rw:\ :sh:\ :sd=/usr/spool/lpd0:\ :xf=/usr/lbin/xf: Thank you muchly to the following persons, Paul Lambert Dave Meiklejohn Iam Mortimer Jim Belonis Hank Lee Graham Allan Bob Vickers all of whom said pretty much the same thing, so I feel like a dummy :) --Rob --- Original Question --- I am attempting to set up two printcap entries for an HP printer (an upper and lower try entry). What is interesting is that I can do the following commands at the command prompt: echo "test text" | /usr/lbin/pcfof +Chplj4mplus.pcf +Iupper (or lower) And the job prints out on the appropriate tray. Very nice indeed. However, when I stick that second piped command in my printcap file ( of=/usr/lbin/pcfof +Chplj4mplus.pcf +Iupper ), it doesn't work (it prints out as usual, but the of= line seems to have NO impact whatsoever. In fact, I tried writing my own filter to even see if the of= filter was even being used: --------------68EEF6057BE8ADF800925382 Content-Type: text/x-vcard; charset=us-ascii; name="rcarsey.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Robert Carsey Content-Disposition: attachment; filename="rcarsey.vcf" begin:vcard n:Carsey;Robert tel;pager:732-776-1723 tel;fax:732-263-5112 tel;home:732-499-0739 tel;work:732-263-5171 x-mozilla-html:TRUE url:http://www.monmouth.edu org:Monmouth University;Information Systems adr:;;Cedar Ave.;West Long Branch;NJ;07764-1898;USA version:2.1 email;internet:rcarsey@monmouth.edu title:UNIX Systems Admin fn:Robert end:vcard --------------68EEF6057BE8ADF800925382--