List Print Jobs by Printer


lpstat

The lpq command shows you the files that are queued to print, but it doesn't tell you to which printer the files are being sent. To learn that, you need to use the lpstat command, covered earlier in "List All Available Printers." This time, however, simply use lpstat without any options at all:

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


The result is a list of print jobs, with the name of each printer handling the job at the beginning of each line. Did you accidentally send a job to a printer to which you're not currently connected? Find out with lpstat and then delete the job, which you'll learn in the next section.



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