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

Job in queue on hold, but not job in queue. Huh?!



I'm trying to set up printing on a Debian box to a remote printer. My
printcap looks like:
lp|hplj4l|HP Laserjet 4L:\

:lp=/dev/null:sd=/var/spool/lpd/hplj4l:rm=<the_printer's_ip_address>:rp=hplj4l:\
	:sh:pw#80:pl#66:px#1440:mx#0:\
	:if=/etc/magicfilter/ljet4l-filter:\
	:af=/var/log/lp-acct:lf=/var/log/lp-errs:

If I try to print something (say, "lpr /etc/printcap"), and then do a
"lpq", I get:
Printer: lp@<localmachine_name>  'HP Laserjet 4L'
 Queue: no printable jobs in queue

If I put a hold on the queue, with "lpc holdall all", and then print
something, "lpq" reports:
Printer: lp@<localmachine_name>  'HP Laserjet 4L'
 Queue: no printable jobs in queue
 Holding: 1 held jobs in queue
 Server: no server active
 Rank   Owner/ID                  Class Job Files                 Size
Time
hold   westk@<localmachine_name>+171         A   171
/etc/printcap          880 11:32:15

Granted I'm a relative newbie, but how can there be no printable jobs in
the queue, yet there's a job on hold in the queue? (As I typed that
question I had the thought, "Perhaps a job on hold is no 'printable'?")

In no case have I gotten anything to print. I can ping and telnet to the
printer, and I've verified that the ip address in the printcap is the
correct address. No lights ever activate on the printer, it never warms
up, nothing. I can print from a Windows box to this printer.

I've tried commenting out the if line, in hopes that maybe I'd get
something (staircasing would be nice at this point), but that did
nothing for me either.

The output of "lpc status" (after removing the hold) is:
 Printer           Printing Spooling Jobs  Server Subserver Redirect
Status/(Debug)
lp@<localmachine_name>       enabled  enabled    0    none    none

The output of "lpc printcap" is:
Printer: lp@<localmachine_name>
lp|hplj4l|HP Laserjet 4L
 :af=/var/log/lp-acct
 :if=/etc/magicfilter/ljet4l-filter
 :lf=/var/log/lp-errs
 :lp=/dev/null
 :mx#0
 :pl#66
 :pw#80
 :px#1440
 :rm=<the_printer's_ip_address>
 :rp=hplj4l
 :sd=/var/spool/lpd/hplj4l
 :sh


Aside:
I just trimmed my /etc/printcap to:
lp|hplj4l|HP Laserjet 4L:\
	:lp=/dev/null:sd=/var/spool/lpd/hplj4l:rm=150.252.14.74:rp=hplj4l:

and then did a "lpc reread" and then the result of "lpc printcap" is:
Printer: lp@alanalogue
lp|hplj4l|HP Laserjet 4L
 :lp=/dev/null
 :rm=150.252.14.74
 :rp=hplj4l
 :sd=/var/spool/lpd/hplj4l


My /var/spool/lpd directory looks like:
total 3
drwx------   2 daemon   lp           1024 Sep 17 11:42 hplj4l
drwx------   2 daemon   lp           1024 Sep 17 10:27 lp
drwx------   2 daemon   lp           1024 Sep 17 10:17 remote

and the hplj4l contents after a print attempt look like:
total 5
drwx------   2 daemon   lp           1024 Sep 17 11:42 .
drwxrwxr-x   5 root     lp           1024 Sep 17 10:04 ..
-rw-------   1 daemon   lp             56 Sep 17 11:37 control.lp
-rw-------   1 daemon   lp              6 Sep 17 11:42 lp
-rw-------   1 daemon   lp              6 Sep 17 11:42 unspooler.lp


Anyone have any clue as to what I'm doing wrong? Thanks!


Reply to: