1 .\" $NetBSD: lprm.1,v 1.14 2003/02/25 10:36:12 wiz Exp $
3 .\" Copyright (c) 1983, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)lprm.1 8.1 (Berkeley) 6/6/93
37 .Nd remove jobs from the line printer spooling queue
51 will remove a job, or jobs, from a printer's spool queue.
52 Since the spooling directory is protected from users, using
54 is normally the only method by which a user may remove a job.
55 The owner of a job is determined by the user's login name
56 and host name on the machine where the
60 Options and arguments:
61 .Bl -tag -width indent
62 .It Fl P Ns Ar printer
63 Specify the queue associated with a specific
65 (otherwise the default printer is used).
67 Specify the maximum time to wait in seconds for remote responses.
68 The default is 300 seconds or 5 minutes.
74 will remove all jobs which a user
75 owns. If the super-user employs this flag, the spool queue will
80 to attempt to remove any jobs queued belonging to that user
81 (or users). This form of invoking
83 is useful only to the super-user.
85 A user may dequeue an individual job by specifying its job number.
86 This number may be obtained from the
90 .Bd -literal -offset indent
93 1st:ken [job #013ucbarpa]
94 (standard input) 100 bytes
99 If neither arguments or options are given,
101 will delete the currently active job if it is
102 owned by the user who invoked
106 announces the names of any files it removes and is silent if
107 there are no jobs in the queue which match the request list.
110 will kill off an active daemon, if necessary, before removing
111 any spooling files. If a daemon is killed, a new one is
112 automatically restarted upon completion of file removals.
114 If the following environment variable exists, it is used by
116 .Bl -tag -width PRINTER
118 If the environment variable
121 and a printer has not been specified with the
124 the default printer is assumed from
128 .Bl -tag -width /var/spool/output/*/lock/ -compact
130 Printer characteristics file.
131 .It Pa /var/spool/output/*
132 Spooling directories.
133 .It Pa /var/spool/output/*/lock
134 Lock file used to obtain the pid of the current
135 daemon and the job number of the currently active job.
138 .Dq Permission denied
139 if the user tries to remove files other than his own.
150 Since there are race conditions possible in the update of the lock file,
151 the currently active job may be incorrectly identified.