1LPRM(1)                     General Commands Manual                    LPRM(1)
2
3
4

NAME

6       lprm - remove jobs from the line printer spooling queue
7

SYNOPSIS

9       lprm [ -Pprinter ] [ - ] [ job # ...  ] [ user ...  ]
10

DESCRIPTION

12       Lprm  will  remove a job, or jobs, from a printer's spool queue.  Since
13       the spooling directory is protected from users, using lprm is  normally
14       the only method by which a user may remove a job.
15
16       Lprm  without  any arguments will delete the currently active job if it
17       is owned by the user who invoked lprm.
18
19       If the - flag is specified, lprm will remove  all  jobs  which  a  user
20       owns.   If  the  super-user  employs this flag, the spool queue will be
21       emptied entirely. The owner is determined by the user's login name  and
22       host name on the machine where the lpr command was invoked.
23
24       Specifying  a  user's  name,  or list of user names, will cause lprm to
25       attempt to remove any jobs queued belonging to that  user  (or  users).
26       This form of invoking lprm is useful only to the super-user.
27
28       A  user  may  dequeue  an  individual job by specifying its job number.
29       This number may be obtained from the lpq(1) program, e.g.
30
31            % lpq -l
32
33            1st: ken                           [job #013ucbarpa]
34                 (standard input)              100 bytes
35            % lprm 13
36
37       Lprm will announce the names of any files it removes and is  silent  if
38       there are no jobs in the queue which match the request list.
39
40       Lprm  will kill off an active daemon, if necessary, before removing any
41       spooling files.  If a daemon is killed,  a  new  one  is  automatically
42       restarted upon completion of file removals.
43
44       The  -P  option  may be usd to specify the queue associated with a spe‐
45       cific printer (otherwise the default  printer,  or  the  value  of  the
46       PRINTER variable in the environment is used).
47

FILES

49       /etc/printcap       printer characteristics file
50       /usr/spool/*        spooling directories
51       /usr/spool/*/lock   lock file used to obtain the pid of the current
52                           daemon and the job number of the currently active job
53

SEE ALSO

55       lpr(1), lpq(1), lpd(8)
56

DIAGNOSTICS

58       ``Permission  denied"  if the user tries to remove files other than his
59       own.
60

BUGS

62       Since there are race conditions possible in  the  update  of  the  lock
63       file, the currently active job may be incorrectly identified.
64
65
66
674.2 Berkeley Distribution      October 22, 1996                        LPRM(1)
Impressum