From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,406d5d6061e2ec0c,start X-Google-Attributes: gidfee84,public From: Charles Richmond Subject: Re: printcap output filters Date: 1996/01/10 Message-ID: <30F3D6D7.167E@iisc.com>#1/1 X-Deja-AN: 134687714 references: <4d0ge3$lkf@chaos.dac.neu.edu> to: Chris Johnson content-type: text/plain; charset=iso-2022-jp organization: Integrated International Systems Corp. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0b4 (X11; I; OSF1 V3.2 alpha) Chris Johnson wrote: > > 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. ... ... > 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. > In my printcap are two entries: lp1|1:\ :af=/usr/adm/lp1acct:\ :if=/usr/lbin/hplaser4psof:\ :lf=/usr/adm/lp1err:\ :lp=:\ :of=/usr/lbin/hplaser4psof:\ :rm=inpon:\ :rp=text:\ :sd=/usr/spool/lpd1: lp|lp2|2|hp4m:\ :af=/usr/adm/lp2acct:\ :fc#0177777:\ :fs#020:\ :if=/usr/lbin/hplaser4psof:\ :lf=/usr/adm/lp2err:\ :lp=:\ :of=/usr/lbin/hplaser4psof:\ :rm=inpon:\ :rp=raw:\ :sd=/usr/spool/lpd2:\ :sh: The first is for postscript and the second is for text. There are problems with full page graphics overflowing the HP , that seem to be related to a problem with lpd on DU3.2 (214). Those problems may have been fixed in later versions (3.2c etc) but I have been trying to decide how to replace lpd and what to replace it with. (My DU is running the Japanese LV). A binary conversion of the Ultrix 4.4 lpd would work for non-Asian locales. The real bottom line for what you are trying to do is that lpd completely ignores outputfilters for remote printers. You need to handle it with a script replacement or with an input filter. The "of" lines in my printcap entries are ignored completely. It is a "feature"! Charlie -- ************************************************************************* * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imagimg, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * *************************************************************************