cancel requests to lineprinter
cancel request-id ...
[ printer ... ]
cancel [ request-id ... ]
The cancel command cancels printer requests that were made
command. The arguments may be request-ids,
printer names, or a list of both. (Request IDs
are the print job identification codes returned by lp.
A complete list of printer names can be found using
Specifying a request-id cancels the associated request
even if it is currently printing. Specifying a printer
cancels the request that is currently printing on that printer. In
either case, the cancellation of a request that is currently
printing frees the printer to print its next available request.
cancel returns the following values:
an error occurred
Most systems print quickly, so cancel must be used quickly
The printer subsystem authorization is controlled by the
lp authorization. See
for further details.
cancel allows only the
root user and printer administrators cancel any job. Other
users may only cancel their own jobs.
If a job is cancelled by root or a printer administrator,
the person who initiated the job is informed by mail unless the
file /etc/default/lpd contains CANCEL_MAIL=NO.
cancel is conformant with:
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003