Cancel a Print Job Sent to Any Printer


lprm job ID

In the previous section, you learned how to cancel the current print job going to the default printer. But what if the job is queued and won't start for another few minutes? Or what if the job is heading for a printer that's not the default? In those cases, you want to still use lprm, but you want to tell the command which job to cancel by referencing the job's ID number.

Look back at the examples in "List Print Jobs." The third column is labeled "Job" and has a number in it. Now look back at "List Print Jobs by Printer." After the name of each printer is a hyphen and then a numberthe same number seen in "List Print Jobs." That number is the job ID number. Specify that number to lprm, and that exact job will be removed.

$ lpstat bro-489    rsgranne 108544 Tue 10 Dec 2005 bro_wk-490 rsgranne 524288 Tue 10 Dec 2005 $ lprm 490 $lpstat bro-489    rsgranne 108544 Tue 10 Dec 2005 


You can really save yourself from a needless waste of paper, toner, and ink using this particular command. Next time you realize that you just sent a 500-page document full of large pictures to your printer and stop it using lprm and a job ID number, send an email my way and thank me.



Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net