lpq.1
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 131 行
1
131 行
.TH lpq 1.SH Namelpq \- spool queue examination program.SH Syntax .B lpq[.I options] [.I job.I #... ] [.I user...].SH Description.NXR "lpq command".NXAM "daemon" "lpd daemon" "lpq command".NXA "printer" "printer queue".NXR "printer queue" "displaying"The.PN lpqcommand examines the spooling area used by .PN lpdfor printing files on the printer,and reports the status of jobs.The.PN lpqcommand invoked without any argumentsreports on any jobs currently in the default queue..PPWhen jobs are being printed,.PN lpqreports the queue as being ``active''.For each job submitted,.PN lpqreports the user's name, current rank in the queue, thenames of files comprising the job, the job identifierand the total size in bytes.The job identifier is a number which may be supplied to.PN lprmto remove a specific job..PPJob ordering is determined by the FIFO (First In, First Out)algorithm used to scan the spooling directory.When the queue is empty,.PN lpqreports that there are ``no entries''..PPFile names may be unavailable for some jobs, for example, if the.PN lprcommand is used without specifying a file name, or if.PN lpris used in a pipe line.If file names are unavailable, the file name reported by.PN lpqis ``standard input''..SH Arguments.TP 12.I job #...Causes.PN lpqto report on only the job number(s) specified..TP.I user...Causes.PN lpqto report on only the jobs for the specified user(s)..SH Options.IP \fB+\fIn\fR 5Scan and display the spool queue until the queue is empty.The queue is scanned every \fIn\fR seconds, if no argument is specified thequeue is scanned every 30 seconds..IP \fB\-l\fR Display the status of each job on more than one line if necessary.If this option is not used, the status of each job is displayed on oneline..IP \fB\-P\fIprinter\fRReport the status of the spool queue for the \fIprinter\fR specified.If this option is not used, the spool queue displayed is the one defined bythe PRINTER environment variable.If a queue is not defined by the PRINTER environment variable, the spoolqueue displayed is for the printer named ``lp'' in the.PN printcapfile..SH RestrictionsThe displayed status of the spool queue may not always be the currentstatus.This is because jobs may be completed after the queue has been examined,but before the status has been displayed..SH Error MessagesTwo of the most common error messages from.PN lpqare:.br.sp.BWarning: no daemon present.R.brA daemon is not available for the specified printer.Refer to the.PN lpc(8)command to find out how to restart the printer daemon..br.sp.Bunknown printer.R.brThe printer specified as an argument to the \fB\-P\fRoption, doesn't have an entry in the.PN /etc/printcapfile..SH Files.TP 25.PN /etc/termcapFor manipulating the screen for repeated display.TP.PN /etc/printcapTo determine printer characteristics.TP.PN /usr/spool/*The spooling directory, as determined from printcap.TP.PN /usr/spool/*/cf*Control files specifying jobs.TP.PN /usr/spool/*/lockThe lock file to obtain the currently active job .SH See Alsolpr(1), lprm(1), lpc(8), lpd(8)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?