Bug#420502: LPRng ignores /etc/printcap
Package: lprng
Version: 3.8.28dfsg.1-1
I've just installed Etch on i386, and set up the LPRng configuration
manually the same as I had working on Sarge. The first snag I hit
was that /dev/lp0 no longer exists, so I connected my printer
(an old Brother HL-1050 laser) to a USB port instead of the parallel
port. I then altered the :lp entry in /etc/printcap to /dev/usb/lp0
(was /dev/lp0).
The lpr command no longer works. It seems to ignore the device and
filter entries in /etc/printcap.
My /etc/printcap:
lp|
:lp=/dev/usb/lp0:\
:if=/var/spool/lpd/lp/filter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
My /var/spool/lpd/lp/filter:
#! /bin/sh
cat | gs -q -dSAFER -dPARANOIDSAFER -dBATCH -dNOPAUSE -sDEVICE=ljet4 \
-sOutputFile=- -sPAPERSIZE=a4 -r600x600 -
exit 0
This command works (it prints /etc/printcap):
mpage -1 -m40 -of /etc/printcap | /var/spool/lpd/lp/filter > /dev/usb/lp0
but this doesn't (it used to work in Sarge):
mpage -1 -m40 -of /etc/printcap | lpr
Next I tried setting -sOutputFile=/dev/usb/lp0 in the filter.
mpage -1 -m40 -of /etc/printcap | lpr
still didn't work, but
mpage -1 -m40 -of /etc/printcap | /var/spool/lpd/lp/filter
now worked.
The lpr command is queuing the files properly in /var/spool/lpd/lp but
they don't appear to be getting as far as the filter. Any ideas?
Reply to: