CANCEL(1) | User Commands | CANCEL(1) |
cancel - cancel print request
cancel [request-ID...] [destination]...
cancel -u user... [destination]...
The cancel utility cancels print requests. There are two forms of the cancel command.
The first form of cancel has two optional arguments: print requests (request-ID) and destinations (destination). Specifying request-ID with destination cancels request-ID on destination. Specifying only the destination cancels the current print request on destination. If destination is not specified, cancel cancels the requested print request on all destinations.
The second form of cancel cancels a user's print requests on specific destinations.
Users can only cancel print requests associated with their username. By default, users can only cancel print requests on the host from which the print request was submitted. If a super-user has set user-equivalence=true in /etc/printers.conf on the print server, users can cancel print requests associated with their username on any host. Super-users can cancel print requests on the host from which the print request was submitted. Superusers can also cancel print requests from the print server.
The print client commands locate destination information using the printers database in the name service switch. See nsswitch.conf(5), printers(5), and printers.conf(5) for details.
The following options are supported:
-u user
The following operands are supported:
destination
request-ID
user
The following exit values are returned:
0
non-zero
/etc/printers.conf
$HOME/.printers
ou=printers
printers.conf.byname
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | Obsolete |
lp(1), lpstat(1), lpq(1B), lpr(1B), lprm(1B), nsswitch.conf(5), printers(5), printers.conf(5), attributes(7), standards(7), lpadmin(8)
URI-style and POSIX-style destination names (server:destination) are treated as print requests if destination has the same format as an LP-style request-ID. See standards(7).
Some print servers send cancellation notifications to job owners when their print jobs have been cancelled. This notification usually comes in the form of an email message. Cancellation notices cannot be disabled on a Solaris server.
When IPP is in use, the user is prompted for a passphrase if the remote print service is configured to require authentication.
November 26, 2017 | OmniOS |