Cancels requests to a line printer.
cancel { JobID ... | PrinterName }
The cancel command cancels line printer requests that were made by the lp command.
Specifying a JobID cancels the print request, even if it is currently printing.
Specifying a PrinterName cancels the printing of your jobs on the specified queue. If you have root user authority, all jobs on the queue are deleted.
Notes:
This command returns the following exit values:
0 | Successful completion. |
>0 | An error occurred. |
/var/spool/qdaemon/* | Contains temporary copies of enqueued files. |
/var/spool/lpd/qdir/* | Contains job description files for print jobs. |
/usr/bin/cancel | Contains the command file. |
The enable command, enq command, lp command, lpstat command, qcan command.
Canceling a Print Job (qcan Command) in AIX Version 4.3 System User's Guide: Operating System and Devices.
Printers, Print Jobs, and Queues Overview for Users in AIX Version 4.3 System User's Guide: Operating System and Devices.