RE: lpr(ng) not filtering through enscript for remote printer
> On Thu, Jan 25, 2001 at 03:15:55PM -0500, Lewis, James M. wrote:
> > > If you make a small tst.c and:
> > > $ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
>
> > > lp|hplj4l|HP Laserjet 4L:\
> > >
> :lp=lp:sd=/var/spool/lpd/hplj4l:rm=remoteprinter.lincrud:rp=hp:lpr_bounce:
> > > \
> > > :sh:pw#80:pl#72:px#1440:mx#0:\
> > > :if=/etc/magicfilter/ljet4m-filter:\
> > > :af=/var/log/lp-acct:lf=/var/log/lp-errs:
> > >
> > Is your printer really on a remote machine called
> > "remoteprinter.lincrud"?
> > If it is, then maybe you need to use ":lp=:".
> > How about a little more detail on the setup...
>
> Yes, the addressing side works fine. If i
> $ cat tst.c|/etc/magicfilter/ljet4m-filter >~/me.ps
> $ lpr ~/me.ps
>
> I get the printout I expect.
>
> The problem seems specifically that for a non local printer, the if:
> filter is not used. (on a different machine with basically the same
> setup, the local printer port does have the expected format).
>
> Also I have got :lp=lp (see second line of /etc/printcap).
> Incidentally, magicfilterconfig seems to set :lp=: which works for
> the lpr package daemon, but not the lprng daemon (unless I am
> misstaken).
>
> Thanks,
> Mark.
>
I am using lprng and magicfilter on a potato system.
The :lp= and :rm= and :rp= fields can take several
forms. Most of our printers are hung off of hp jetdirect
print servers or emulex print servers. Here are some
of the entries from my /etc/printcap. Note that the
same type printer can be run using :lp=printer@host
or :lp=host%portnumber (raw tcp), or with :lp= and
:rm=host :rp=printer type entries. I don't use filters
with the postscript printers (I use a2ps instead).
tnp192|Remote hp5simx(ps) printer
:lp=
:rm=tnp192
:rp=raw
:sd=/var/spool/lpd/tnp192
:mx#0
:sf
:sh
tnp153|xerox|Remote xerox(ps) printer (engineering)
:lp=
:rm=tnp153.ten.alcoa.com
:rp=lp
:sd=/var/spool/lpd/tnp153
:mx#0
:sf
:sh
tnp015|rm164_hp|Remote hp8kN(ps) printer
:lp=tnp015.ten.alcoa.com%9100
:sd=/var/spool/lpd/tnp015
:mx#0
:sf
:sh
tnp100|CharlieBrown lj3(pcl)
:lpr_bounce
:lp=PASSTHRU@tnp100
:sd=/var/spool/lpd/tnp100
:if=/etc/magicfilter/ljet3-filter
:mx#0
:sf
:sh
tnp077|Accounting lj3(pcl)
:lpd_bounce
:lp=PASSTHRU@tnp077
:sd=/var/spool/lpd/tnp077
:if=/etc/magicfilter/ljet3-filter
:mx#0
:sf
:sh
tnp126|rm164_empac|Remote hp4k(ps) printer
:lp=tnp126%2501
:sd=/var/spool/lpd/tnp126
:mx#0
:sf
:sh
tnp077 and tnp100 are probably what you are most interested
in since they use magicfilter. One uses lpr_bounce and the
other uses lpd_bounce. Both work. They both happen to use
the special form of :lp=printer@host but one of them used to
use :rm=tnp077 :rp=PASSTHRU and :lp= entries.
hth
jim
Reply to: