[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bounce-queues with LPRng



> > Does anyone here have a filtered bounce queue for remote printer set up
> > with LPRng?
> I could never get it running here. Call me stupid but I just couldn't
> get it to work. I use lpr and messy shell scripts to achieve the same.

I have used shell scripts before, but wanted to move on to LPRng and
bounce-queues... I finally got it working today; here are my configuration
files:

- - - /etc/printcap @ server (jooseppi.marjamaki.com)
hp-raw|lp|HP LaserJet 5L raw:\
	:lp=/dev/lp1
	:sd=/var/spool/lpd/hp-raw
	:af=/var/log/lp-acct
	:lf=/var/log/lp-errs
	:mx#0
	:sh

- - - /etc/printcap @ workstation
hp|lp|HP LaserJet 5L filtered (elmeri.marjamaki.com)
	:lpr_bounce
	:qq
	:bq=hp-raw@elmeri.marjamaki.com
	:sd=/var/spool/lpd/remote/hp
	:if=/usr/local/lpd/filters/ljet5l-filter
	:mx#0
	:sh:

hp-raw|HP LaserJet 5L raw
	:lp=hp-raw@jooseppi.marjamaki.com
	:sd=/var/spool/lpd/remote/hp-raw
	:mx#0
	:sh:
- - -

/usr/local/lpd/filters/ljet5l-filter is like ljet4-filter from magicfilter
with one small modification; the last line is now
- - -
default		pipe	/usr/bin/enscript -2 -G -r -t -b "${LPJOB}" --output=-
- - -
which gives quite nice output formatting when printing pure text-files.

Hope this helps,

  Mika

-- 
Mika S. Marjamäki                  Unikko-Soft Oy
Mobile: +358-40-5649948            Tel. Switch: +358-6-2119111
Tel: +358-6-2119205                Fax: +358-6-2119261
Email: Mika.Marjamaki@Unikko.FI    <URL: http://www.unikko.fi/>


Reply to: