From: Charles Richmond <cmr@iisc.com>
To: Chris Johnson <johnson@neu.edu>
Subject: Re: printcap output filters
Date: 1996/01/10 [thread overview]
Message-ID: <30F3D6D7.167E@iisc.com> (raw)
In-Reply-To: 4d0ge3$lkf@chaos.dac.neu.edu
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 *
*************************************************************************
next prev parent 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 printcap output filters Chris Johnson
1996-01-10 5:00 ` Charles Richmond [this message]
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