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 "May 26, 2006"
9 cancel \- cancel print request
13 \fBcancel\fR [\fIrequest-ID\fR...] [\fIdestination\fR]...
18 \fBcancel\fR \fB-u\fR \fIuser\fR... [\fIdestination\fR]...
24 The \fBcancel\fR utility cancels print requests. There are two forms of the
28 The first form of \fBcancel\fR has two optional arguments: print requests
29 (\fIrequest-ID\fR) and destinations (\fIdestination\fR). Specifying
30 \fIrequest-ID\fR with \fIdestination\fR cancels \fIrequest-ID\fR on
31 \fIdestination\fR. Specifying only the destination cancels the current print
32 request on \fIdestination\fR. If \fIdestination\fR is not specified,
33 \fBcancel\fR cancels the requested print request on all destinations.
36 The second form of \fBcancel\fR cancels a user's print requests on specific
40 Users can only cancel print requests associated with their username. By
41 default, users can only cancel print requests on the host from which the print
42 request was submitted. If a super-user has set \fBuser-equivalence=true\fR in
43 \fB/etc/printers.conf\fR on the print server, users can cancel print requests
44 associated with their username on any host. Super-users can cancel print
45 requests on the host from which the print request was submitted. Superusers can
46 also cancel print requests from the print server.
49 The print client commands locate destination information using the
50 \fBprinters\fR database in the name service switch. See \fBnsswitch.conf\fR(4),
51 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
55 The following options are supported:
59 \fB\fB-u\fR \fIuser\fR\fR
62 The name of the user for which print requests are to be cancelled. Specify
63 \fIuser\fR as a username.
69 The following operands are supported:
73 \fB\fIdestination\fR\fR
76 The destination on which the print requests are to be canceled.
77 \fIdestination\fR is the name of a printer or class of printers (see
78 \fBlpadmin\fR(1M)). If \fIdestination\fR is not specified, \fBcancel\fR cancels
79 the requested print request on all destinations. Specify \fIdestination\fR
80 using atomic, URI-style (\fIscheme\fR\fB://\fR\fIendpoint\fR), or POSIX-style
81 (\fIserver\fR\fB:\fR\fIdestination\fR), names. See Notes for information
82 regarding using URI-style or POSIX-style destination names with \fBcancel\fR.
83 See \fBprinters.conf\fR(4) for more information.
89 \fB\fIrequest-ID\fR\fR
92 The print request to be canceled. Specify \fIrequest-ID\fR using \fBLP-style\fR
93 request \fBIDs\fR (\fIdestination\fR-\fInumber\fR).
102 The name of the user for which the print requests are to be cancelled. Specify
103 \fIuser\fR as a username.
109 The following exit values are returned:
116 Successful completion.
132 \fB\fB/etc/printers.conf\fR\fR
135 System printer configuration database
141 \fB\fB$HOME/.printers\fR\fR
144 User-configurable printer database
150 \fB\fBou=printers\fR\fR
153 LDAP version of \fB/etc/printers.conf\fR
159 \fB\fBprinters.conf.byname\fR\fR
162 \fBNIS\fR version of \fB/etc/printers.conf\fR
168 \fB\fBprinters.org_dir\fR\fR
171 \fBNIS+\fR version of \fB/etc/printers.conf\fR
177 See \fBattributes\fR(5) for descriptions of the following attributes:
185 ATTRIBUTE TYPE ATTRIBUTE VALUE
187 Interface Stability Obsolete
193 \fBlp\fR(1), \fBlpq\fR(1B), \fBlpr\fR(1B), \fBlprm\fR(1B), \fBlpstat\fR(1),
194 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
195 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
199 URI-style and POSIX-style destination names (\fIserver\fR:\fIdestination\fR)
200 are treated as print requests if \fIdestination\fR has the same format as an
201 \fBLP-style\fR \fIrequest-ID\fR. See \fBstandards\fR(5).
204 Some print servers send cancelation notification to job owners when their print
205 jobs have been cancelled. This notification usually comes in the form of an
206 email message. Cancelation notices cannot be disabled on a Solaris server.
209 When IPP is in use, the user is prompted for a passphsrase if the remote print
210 service is configured to require authentication.