|
|
1.1 root 1: .TH LPQ 1 "18 July 1983"
2: .UC 4
3: .SH NAME
4: lpq \- spool queue examination program
5: .SH SYNOPSIS
6: .B lpq
7: [ +[ n ] ] [ -l ] [ \-Pprinter ] [ job # ... ] [ user ... ]
8: .SH DESCRIPTION
9: .I lpq
10: examines the spooling area used by
11: .IR lpd (8)
12: for printing
13: files on the line printer, and reports the status of the specified jobs or
14: all jobs associated with a user.
15: .I lpq
16: invoked without any arguments
17: reports on any jobs currently in the queue. A
18: .B \-P
19: flag may be used
20: to specify a particular printer, otherwise the default line printer
21: is used (or the value of the PRINTER variable in the environment).
22: If a
23: .B \+
24: argument is supplied,
25: .I lpq
26: displays the spool queue until it empties. Supplying a number
27: immediately after the
28: .B \+
29: sign indicates that
30: .I lpq
31: should sleep \fIn\fR seconds in between scans of the queue.
32: All other arguments supplied are
33: interpreted as user names or job numbers to filter out only those
34: jobs of interest.
35: .PP
36: For each job submitted (i.e. invocation of
37: .IR lpr (1))
38: .I lpq
39: reports the user's name, current rank in the queue, the
40: names of files comprising the job, the job identifier (a number which
41: may be supplied to
42: .IR lprm (1)
43: for removing a specific job), and the total size in bytes.
44: The
45: .B \-l
46: option causes information about each of the files comprising the job
47: to be printed.
48: Normally, only as much information as will fit on one line is displayed.
49: Job ordering is dependent on
50: the algorithm used to scan the spooling directory and is supposed
51: to be FIFO (First in First Out).
52: File names comprising a job may be unavailable
53: (when
54: .IR lpr (1)
55: is used as a sink in a pipeline) in which case the file
56: is indicated as ``(standard input)".
57: .PP
58: If
59: .I lpq
60: warns that there is no daemon present (i.e. due to some malfunction),
61: the
62: .IR lpc (8)
63: command can be used to restart the printer daemon.
64: .SH FILES
65: .nf
66: .ta \w'/etc/termcap 'u
1.1.1.2 ! root 67: /etc/termcap for manipulating the screen for
! 68: repeated display
! 69: /etc/printcap to determine printer characteristics
! 70: /usr/spool/* the spooling directory, as determined
! 71: from printcap
! 72: /usr/spool/*/cf* control files specifying jobs
! 73: /usr/spool/*/lock the lock file to obtain the currently
! 74: active job
1.1 root 75: .fi
76: .SH "SEE ALSO"
77: lpr(1),
78: lprm(1),
79: lpc(8),
80: lpd(8)
81: .SH BUGS
82: Due to the dynamic nature of the information in the spooling directory
83: lpq may report unreliably.
84: Output formatting is sensitive to the line length of the terminal;
1.1.1.2 ! root 85: this can result in widely spaced columns.
1.1 root 86: .SH DIAGNOSTICS
87: Unable to open various files. The lock file being malformed. Garbage
88: files when there is no daemon active, but files in the spooling directory.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.