From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079079016180.tru64-unix-managers.marc@archive.invalid> From: Robert Carsey Date: Mon, 18 Oct 1999 21:29:01 +0000 To: tru64-unix-managers Subject: pcfof and printcap file X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079079016180 Everyone is probably cringing when I bring up the word printcap.. Sorry :-) 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: #!/bin/ksh touch /tmp/testfile.txt cat - | /usr/lbin/pcfof +Chplj4mplus.pcf +Iupper And no testfile.txt was created. I'm testing the printcap entry using lp -dtestprinter. Here is the entry I've tried.. Any suggestions? I've never had to use printfilters before! :-( At this point, any shot in the dark suggestion is appreciated. testprinter:\ :lp=:ct=remote:rm=testprinter:rp=text:\ :of=/usr/lbin/pcfof +Chplj4mplus.pcf +Iupper:\ :lf=/usr/adm/lp0err:\ :sh:\ :sd=/usr/spool/lpd0: --Rob