From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,406d5d6061e2ec0c X-Google-Attributes: gidfee84,public From: johnson@neu.edu (Chris Johnson) Subject: printcap output filters Date: 1996/01/10 Message-ID: <4d0ge3$lkf@chaos.dac.neu.edu>#1/1 X-Deja-AN: 134687716 organization: Northeastern University, Boston, MA. 02115, USA newsgroups: comp.unix.osf.osf1 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 ----------------------------------------------------------------------------