Canceling a print job (qcan command)

You can use the qcan command to cancel a print job.

  • For local print jobs, the printer must be physically attached to your system or, in the case of a network printer, attached and configured on the network.
  • For remote print jobs, your system must be configured to communicate with the remote print server.

When you cancel a print job, you are prompted to provide the name of the print queue where the job resides and the job number to be canceled.

This procedure applies to both local and remote print jobs.

Use the qcan command to cancel either a particular job number in a local or remote print queue, or all jobs in a local print queue. To determine the job number, use the qchk command.

The basic format of the qcan command is:
qcan -P QueueName -x JobNumber
The following list contains examples of how to use the qcan command:
  • To cancel job number 123 on whichever printer the job is on, type: qcan -x 123
  • To cancel all jobs queued on printer lp0, type: qcan -X -Plp0
Note: The base operating system also supports the BSD UNIX cancel print command lprm and the System V UNIX cancel print command cancel.