tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Robert Carsey <rcarsey () monmouth ! edu>
To: tru64-unix-managers
Subject: pcfof and printcap file
Date: Mon, 18 Oct 1999 21:29:01 +0000	[thread overview]
Message-ID: <96079079016180.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1999-10-18 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox