lprm.1
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 94 行
1
94 行
.\" SCCSID: @(#)lprm.1 8.1 9/11/90.TH lprm 1.SH Namelprm \- remove jobs from line printer queue.SH Syntax.B lprm[\fB\-P\fIprinter\fR\|] [\fB\-\fR] [\fIjob #...\fR] [\fIuser...\fR].SH Description.NXR "lprm command".NXR "print queue" "removing jobs"The.PN lprmcommandremoves a job, or jobs, from a printer's spool queue.Since the spooling directory is protected from users, using.PN lprmis normally the only method by which a user may remove a job..PPThe.PN lprmcommandwithout any arguments deletes the currently active job if it isowned by the user who invoked.PN lprm ..PPIf the.B \-flag is specified, .PN lprmremoves all jobs which a userowns. If the super-user employs this flag, the spool queue isemptied entirely. The owner is determined by the user's login nameand host name on the machine where the.PN lprcommand was invoked..PPSpecifying a user's name, or list of user names, causes.PN lprmto attempt to remove any jobs queued belonging to that user(or users). This form of invoking.PN lprmis useful only to the super-user..PPA user may dequeue an individual job by specifying its job number.This number may be obtained from the .MS lpq 1 program. For example, .EX% lpq \-l1st: ken [job #013ucbarpa] (standard input) 100 bytes% lprm 13.EE.PPThe.PN lprmcommandannounces the names of any files it removes and is silent ifthere are no jobs in the queue which match the request list..PPThe.PN lprmcommandkills off an active daemon, if necessary, before removingany spooling files. If a daemon is killed, a new one isautomatically restarted upon completion of file removals..SH Options.IP \fB\-\fR 20Removes all jobs owned by you only..IP "\fB\-\|P\fI printer\fR" 20Removes jobs from specified printer. It may be used to specify the queue associated with a specificprinter (otherwise the default printer, or the value of the PRINTERvariable in the environment is used)..PP.SH Restrictions.NXR "lprm command" "restricted"Since there are race conditions possible in the update of the lock file,the currently active job may be incorrectly identified..SH Diagnostics.NXR "lprm command" "diagnostics"``Permission denied" if the user tries to remove files other than hisown..SH Files.nf.ta \w'/usr/spool/*/lock 'u/etc/printcap printer characteristics file/usr/spool/* spooling directories/usr/spool/*/lock lock file used to obtain the pid of the current daemon and the job number of the currently active job.fi.SH See Alsolpq(1), lpr(1), lpd(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?