Re: printcap rerouted filter
On Wed, Sep 30, 1998 at 11:36:54PM -0500, Kent West wrote:
[...]
> > 10.8. Running an if for remote printers
> >
> > One oddity of lpd is that the if is not run for remote printers. If
> > you find that you need to run an if, you can do so by setting up a
> > double queue and requeueing the job. As an example, consider this
> > printcap:
> >
> > lj-5:remote-hplj:\
> > :lp=/dev/null:sh:\
> > :sd=/var/spool/lpd/lj-5:\
> > :if=/usr/lib/lpd/filter-lj-5:
> > lj-5-remote:lp=/dev/null:sh:rm=printer.name.com:\
> > :rp=raw:sd=/var/spool/lpd/lj-5-raw:
> >
> > in light of this filter-lj-5 script:
> >
> > #!/bin/sh
> > gs <options> -q -dSAFER -sOutputFile=- - | \
> > lpr -Plj-5-remote -U$5
> >
Or use lprng bouncing queue (not old lpr).
My working printcap:
pl8|toshiba|Toshiba PageLaser8:\
:lp=/dev/null:\
:bq=lp@mirek:\
:sd=/var/spool/lpd/toshiba:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:if=/usr/sbin/ljet2p-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
Reply to: