Examples of using the cancel command

To remove a print job from the queue for your default printer:

   lpstat
   Rank    Owner   Job     Files
   active  joe     483     overheads.ps
   2nd     sarah   484     /tmp/RFC137
   3rd     tony    485     report

   cancel 484

The user sarah has removed their print job from the the printer queue.


To remove a print job that has been placed in another printer's queue:

   lpstat -dps3
   Rank    Owner   Job     Files
   active  jim     112     doc.ps
   2nd     sally   113     presentation.ps
   3rd     tom     114     draft

   cancel -dps3 113

The user sally has removed her print job from the queue for the printer ps3.


[Home] [Search] [Index] This site maintained by unixhelp@mathcs.duq.edu