* pcfof and printcap file
@ 1999-10-18 21:29 Robert Carsey
0 siblings, 0 replies; only message in thread
From: Robert Carsey @ 1999-10-18 21:29 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-10-18 21:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-18 21:29 pcfof and printcap file Robert Carsey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox