Friday, 13 November 2009

Cancel print jobs

To list the jobs for a printer:
  • lpstat -W -o<printer name>
(The '-W' switch shows the job number in wide column format)

To cancel a job:
  • cancel <spool number> <printer name>

To cancel all prints for a printer:
  • qcan -X -P<printer name>

No comments:

Post a Comment