2 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
3 .\" Copyright (C) 2006, Sun Microsystems, Inc. All Rights Reserved
4 .TH LPRM 1B "Jun 2, 2006"
6 lprm \- remove print requests from the print queue
10 \fB/usr/ucb/lprm\fR [\fB-P\fR \fIdestination\fR] [\fB-\fR] [\fIrequest-ID\fR]...
17 The \fBlprm\fR utility removes print requests (\fIrequest-ID\fR) from the
21 Without arguments, \fBlprm\fR deletes the current print request. \fBlprm\fR
22 reports the name of the file associated with print requests that it removes.
23 \fBlprm\fR is silent if there are no applicable print requests to remove.
26 Users can only remove print requests associated with their user name. See
27 Notes. If a superuser executes \fBlprm\fR and specifies the \fIuser\fR operand,
28 \fBlprm\fR removes all print requests belonging to the specified user.
31 The print client commands locate destination information using the "printers"
32 database in the name service switch. See \fBnsswitch.conf\fR(4),
33 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
37 The following options are supported:
41 \fB\fB-P\fR \fIdestination\fR\fR
44 The name of the printer or class of printers (see \fBlpadmin\fR(1M)) from which
45 to remove print requests. Specify destination using atomic, URI-style
46 (\fIscheme\fR\fB://\fR\fBendpoint\fR), or POSIX-style
47 (\fIserver\fR\fB:\fR\fIdestination\fR) names. See \fBprinters.conf\fR(4) for
48 information regarding the naming naming conventions for destination names.
57 If a user specifies this option, removes all print requests owned by that
58 user. If a superuser specifies this option, removes all requests in the print
59 queue. Job ownership is determined by the user's login name and host name on
60 the machine from which \fBlpr\fR was executed. See Notes.
66 The following operands are supported.
70 \fB\fIrequest-ID\fR\fR
73 Removes a specific print request. Specify \fIrequest-ID\fR as the job number
74 (\fBJob\fR) associated with a print request and reported by \fBlpq\fR. See
84 Removes print requests associated with a specific user. Specify \fIuser\fR as
85 a valid user name. This option can only be used by a superuser.
90 \fBExample 1 \fRRemoving a Print Request
93 The following example removes request-ID \fB385\fR from destination
99 example% \fBlprm \(miP killtree 385\fR
107 The following exit values are returned:
114 Successful completion.
130 \fB\fB$HOME/.printers\fR\fR
133 User-configurable printer database
139 \fB\fB/etc/printers.conf\fR\fR
142 System printer configuration database
148 \fB\fBprinters.conf.byname\fR\fR
151 NIS version of \fB/etc/printers.conf\fR
157 \fB\fBprinters.org_dir\fR\fR
160 NIS+ version of \fB/etc/printers.conf\fR
166 \fB\fBou=printers\fR\fR
169 LDAP version of \fB/etc/printers.conf\fR
175 See \fBattributes\fR(5) for descriptions of the following attributes:
183 ATTRIBUTE TYPE ATTRIBUTE VALUE
185 Interface Stability Standard
191 \fBlp\fR(1), \fBlpc\fR(1B), \fBlpq\fR(1B), \fBlpr\fR(1B), \fBlpstat\fR(1),
192 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
193 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
197 Users can only remove print requests associated with their user name. By
198 default, users can only remove print requests on the host from which the print
199 request was submitted. If a superuser has set \fBuser-equivalence=true\fR in
200 \fB/etc/printers.conf\fR on the print server, users can remove print requests
201 associated with their user name on any host. Superusers can remove print
202 requests on the host from which the print request was submitted. Superusers can
203 also remove print requests from the print server.
206 Some print servers send cancelation notification to job owners when their print
207 jobs have been cancelled. This notification usually comes in the form of an
208 email message. Cancelation notices cannot be disabled on a Solaris server.
212 When IPP is in use, the user is prompted for a passphrase if the remote print
213 service is configured to require authentication.