Ticket #448 (closed defect: fixed)
lprm/lpq wrapper should point you at the right CUPS server
Reported by: | jdreed | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | Karmic Deploy (Canceled) |
Component: | printing | Keywords: | |
Cc: | Fixed in version: | ||
Upstream bug: |
Description
With the transition of the cluster printers to CUPS, lprm and lpq now only works if you talk to the actual CUPS server and not printers.mit.edu. This is a major change in behavior and actively conflicts with documentation and printed instructions in clusters.
Our wrapper script should look up queues in Hesiod and add the appropriate -h flag.
lpq/lprm should possibly also default to --cups mode based on the printer name and not just argument parsing.
This will have the side effect of making lpq output much nicer:
c.f. :
jdreed@infinite-loop:~$ lpq -Pajax | head -5
ajax is ready and printing
q_liang: active [job 2834 (Nov 19 20:15) localhost]
(STDIN) 3019776 bytes
jdreed@infinite-loop:~$ lpq -Pajax -h get-print.mit.edu | head -5
ajax is ready and printing
Rank Owner Job File(s) Total Size
active q_liang 2834 (STDIN) 3019776 bytes
1st jaimevr 2835 Test3Rev_dvi _Test3Rev_1_pdf_ 315392 bytes
2nd jaimevr 2836 Test3Rev_dvi _Test3RevSol_1_pdf 1129472 bytes
Fixed in r24201, r24202, r24203, r24204, r24205, r24208, r24209