Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lprm.bsd(1) — Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpr(1)

lpq(1)

lpd(8)

LPRM(1)

NAME

lprm − remove jobs from the line printer spooling queue

USAGE

lprm [ −Pprinter ] [ − ] [ job # ]
lprm username(s)

DESCRIPTION

Lprm removes job(s) from a printer’s spool queue.  Since the spooling directory is protected, lprm is normally the only method by which a user may remove a job.  Without any arguments, lprm deletes the currently active job, if it is owned by the user who invoked lprm. 

The second way of invoking lprm is useful only to the super-user.  Specify a username, or list of usernames, and lprm removes any jobs in the queue belonging to that user (or users). 

Lprm announces the names of any files it removes.  It does not return any message if no jobs in the queue match the arguments. 

Lprm kills off an active daemon, if necessary, before removing any spooling files.  If a daemon is killed, a new one is automatically restarted once the files are removed. Lprm should be run from the same machine as the one running the line printer daemon, lpd. 

OPTIONS

−Pprinter Remove jobs from the queue associated with a specific printer.  (Otherwise, jobs will be removed from the queue associated with the default printer, or with the printer identified in the PRINTER environment variable.) 

− Remove all jobs in the queue which you own.  If the super-user uses this flag, all jobs in the spool queue, regardless of owner, will be deleted.  The owner is determined by the user’s log-in name and host name on the machine where the lpr command was invoked. 

job # Delete only the job specified by the job number #.  You can obtain this number with the lpq(1) command. 

CAUTIONS

Since race conditions can occur when the lock file is updated, the currently active job may be incorrectly identified. 

DIAGNOSTICS

“Permission denied” if a user tries to remove files owned by anyone else. 

FILES

/etc/printcap printer characteristics file

/usr/spool/lpd/* spooling directories

/usr/spool/lpd/*/lock lock file used to obtain the pid of the current daemon and the job number of the currently active job

RELATED INFORMATION

lpr(1) lpq(1) lpd(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026