Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: johnson@neu.edu (Chris Johnson)
Subject: printcap output filters
Date: 1996/01/10	[thread overview]
Message-ID: <4d0ge3$lkf@chaos.dac.neu.edu> (raw)

     Hi all.  Happy New Year.

     I'm trying to get an output filter to work from printcap for lpd.  
Having trouble doing so.  The net result is to get lpd to talk to HP Laser
Jet JetDirect cards.  Neither HP nor DEC seem to support this for some
strange reason.  We have gotten this working in the past with ULTRIX but I'm
moving to OSF1 now (excuse me, that's Digital UNIX).  I'm piping the file to
the ln03r filter which produces postscript and then to netcat which copies
standard input to a net destination.  It works just fine when I do it by 
hand at the command prompt.  When I try it in the of entry in printcap
nothing happens except an error in the lpr.log file created by syslogd.
The error is this in the log

Jan  9 11:59:11 chaos lpd[479]: pid=4432 (sig=-1,err=1)

which isn't very useful.  DEC doesn't seem to be forthcoming with info 
on this.

     This printcap entry I'm tring to use is as follows

testq|lp0:\
        :lp:\
        :lf=/usr/adm/testqerr:\
        :of=/usr/lbin/ln03rof | /usr/local/bin/nc a.b.c.d 9100:\
        :sd=/usr/spool/testq:\
        :ps=LN03R:\
        :pl#66:\
        :pw#80:\
        :mc#1:\
        :mx#0:sb:

DEC also doesn't seem to be helping much with this.  They may not support 
JetDirect cards but they do support output filters in printcap.  No go yet
though.

     So what's the trick?  What do I do in printcap to get this to work.
Remember, it does work when I do

cat file | /usr/lbin/ln03rof | /usr/local/bin/nc a.b.c.d 9100

by hand.  All I seem to be missing is the magic to get printcap/lpd 
to believe in the printcap of entry.  Oh, and a.b.c.d is a real address on
my network when I run this.

     I'd be very interested in talking to others who have done this or 
otherwise gotten JetDirect cards working with OSF1 3.2c lpd.  I have several 
hundred of these printers I need to talk to from OSF.

     Thanks.  Any constructive help much appeciated.

----------------------------------------------------------------------------
Chris Johnson                            Internet: johnson@lynx.dac.neu.edu
Assistant Director, Systems              BITNET:   johnson@nuhub
Division of Academic Computing           Voice:    617.373.3300
Northeastern University, 39 RI           FAX:      617.373.8600
360 Huntington Ave.
Boston, MA., U.S.A.  02115
----------------------------------------------------------------------------



             reply	other threads:[~1996-01-10  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-10  5:00 Chris Johnson [this message]
1996-01-10  5:00 ` printcap output filters Charles Richmond
1996-01-10  5:00 ` Philip Sterne
1996-01-12  5:00   ` Boyd Adamson
1996-01-22  5:00 ` Greg Merrell
  -- strict thread matches above, loose matches on Subject: below --
1996-01-14  5:00 Ralf Puchner
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