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
Received on Mon Oct 18 1999 - 21:30:59 NZDT