tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: pcfof and printcap file
@ 1999-10-21  3:01 Robert Carsey
  0 siblings, 0 replies; only message in thread
From: Robert Carsey @ 1999-10-21  3:01 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--------------68EEF6057BE8ADF800925382", Size: 2938 bytes --]

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--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-21  3:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-21  3:01 SUMMARY: 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