2 .\" Copyright 1989 AT&T
3 .\" Copyright (C) 2005, 2006 Sun Microsystems, Inc. All Rights Reserved
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH CANCEL 1 "Nov 26, 2017"
9 cancel \- cancel print request
13 \fBcancel\fR [\fIrequest-ID\fR...] [\fIdestination\fR]...
18 \fBcancel\fR \fB-u\fR \fIuser\fR... [\fIdestination\fR]...
23 The \fBcancel\fR utility cancels print requests. There are two forms of the
27 The first form of \fBcancel\fR has two optional arguments: print requests
28 (\fIrequest-ID\fR) and destinations (\fIdestination\fR). Specifying
29 \fIrequest-ID\fR with \fIdestination\fR cancels \fIrequest-ID\fR on
30 \fIdestination\fR. Specifying only the destination cancels the current print
31 request on \fIdestination\fR. If \fIdestination\fR is not specified,
32 \fBcancel\fR cancels the requested print request on all destinations.
35 The second form of \fBcancel\fR cancels a user's print requests on specific
39 Users can only cancel print requests associated with their username. By
40 default, users can only cancel print requests on the host from which the print
41 request was submitted. If a super-user has set \fBuser-equivalence=true\fR in
42 \fB/etc/printers.conf\fR on the print server, users can cancel print requests
43 associated with their username on any host. Super-users can cancel print
44 requests on the host from which the print request was submitted. Superusers can
45 also cancel print requests from the print server.
48 The print client commands locate destination information using the
49 \fBprinters\fR database in the name service switch. See \fBnsswitch.conf\fR(4),
50 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
53 The following options are supported:
57 \fB\fB-u\fR \fIuser\fR\fR
60 The name of the user for which print requests are to be cancelled. Specify
61 \fIuser\fR as a username.
66 The following operands are supported:
70 \fB\fIdestination\fR\fR
73 The destination on which the print requests are to be canceled.
74 \fIdestination\fR is the name of a printer or class of printers (see
75 \fBlpadmin\fR(1M)). If \fIdestination\fR is not specified, \fBcancel\fR cancels
76 the requested print request on all destinations. Specify \fIdestination\fR
77 using atomic, URI-style (\fIscheme\fR\fB://\fR\fIendpoint\fR), or POSIX-style
78 (\fIserver\fR\fB:\fR\fIdestination\fR), names. See Notes for information
79 regarding using URI-style or POSIX-style destination names with \fBcancel\fR.
80 See \fBprinters.conf\fR(4) for more information.
86 \fB\fIrequest-ID\fR\fR
89 The print request to be canceled. Specify \fIrequest-ID\fR using \fBLP-style\fR
90 request \fBIDs\fR (\fIdestination\fR-\fInumber\fR).
99 The name of the user for which the print requests are to be cancelled. Specify
100 \fIuser\fR as a username.
105 The following exit values are returned:
112 Successful completion.
127 \fB\fB/etc/printers.conf\fR\fR
130 System printer configuration database
136 \fB\fB$HOME/.printers\fR\fR
139 User-configurable printer database
145 \fB\fBou=printers\fR\fR
148 LDAP version of \fB/etc/printers.conf\fR
154 \fB\fBprinters.conf.byname\fR\fR
157 \fBNIS\fR version of \fB/etc/printers.conf\fR
162 See \fBattributes\fR(5) for descriptions of the following attributes:
170 ATTRIBUTE TYPE ATTRIBUTE VALUE
172 Interface Stability Obsolete
177 \fBlp\fR(1), \fBlpq\fR(1B), \fBlpr\fR(1B), \fBlprm\fR(1B), \fBlpstat\fR(1),
178 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
179 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
182 URI-style and POSIX-style destination names (\fIserver\fR:\fIdestination\fR)
183 are treated as print requests if \fIdestination\fR has the same format as an
184 \fBLP-style\fR \fIrequest-ID\fR. See \fBstandards\fR(5).
187 Some print servers send cancellation notifications to job owners when their
188 print jobs have been cancelled. This notification usually comes in the form of
189 an email message. Cancellation notices cannot be disabled on a Solaris server.
192 When IPP is in use, the user is prompted for a passphrase if the remote print
193 service is configured to require authentication.