[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 1

cancel Command

Purpose

Cancels requests to a line printer.

Syntax

cancelJobID ... | PrinterName }

Description

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:
  1. You must have root-user authority, or be a member of the print group, to cancel print requests that were not submitted by your current ID.
  2. The JobID must be a number.
  3. If you enter cancel -? , the system displays the following error message:
    enq: (FATAL ERROR): 0781-048: Bad queue or device name: -?

Exit Status

This command returns the following exit values:

0 Successful completion.
>0 An error occurred.

Files

/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.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]