Manual page for LPQ(1)
lpq - display the queue of printer jobs
] ] [
displays the contents of a printer queue. It reports the status of
jobs specified by
or all jobs owned by the user specified by
reports on all jobs in the default printer queue when invoked with no
For each print job in the queue,
reports the user's name, current position, the names of input
files comprising the job, the job number (by which it is
referred to when using
and the total size in bytes.
Normally, only as much information as will fit on one line
is displayed. Jobs are normally queued on a first-in-first-out basis.
Filenames comprising a job may be unavailable, such as when
is used at the end of a pipeline; in such cases the filename field
indicates ``(standard input)''.
warns that there is no daemon present
(that is, due to some malfunction), the
command can be used to restart a printer daemon.
- -P printer
Display information about the queue for the specified
In the absence of the
option, the queue to the printer specified by the
variable in the environment is used. If the
variable isn't set, the queue for the default printer is used.
Display queue information in long format; includes the name of
the host from which the job originated.
Display the spool queue periodically until it empties. This option
clears the terminal screen before reporting on the queue. If an
sleeps that number of seconds in between reports.
for manipulating the screen for repeated display
to determine printer characteristics
spooling directory, as determined from printcap
control files specifying jobs
lock file to obtain the currently active job
- printer is ready and printing
program checks to see if there is a printer daemon.
If the daemon is hung, the super-user can
abort the current daemon and start a new one using
- Waiting for printer to become ready (offline ?)
The daemon could not open the printer device. The printer may be
turned off-line. This message can also occur if a printer is out
of paper, the paper is jammed, and so on. Another possible cause is
that a process, such as an output filter, has exclusive use of the
device. The only recourse in this case is to kill the offending
process and restart the printer with
- waiting for host to come up
A daemon is trying to connect to the remote machine named
in order to send the files in the local queue.
If the remote machine is up,
on the remote machine is probably dead or
hung and should be restarted using
- sending to host
The files are being transferred to the remote
or else the local daemon has hung while trying to transfer the
- Warning: printer is down
The printer has been marked as being unavailable with
- Warning: no daemon present
the spooling queue, as indicated in the ``lock'' file
in that directory, does not exist. This normally occurs
only when the daemon has unexpectedly died. Check the printer's
error log for a diagnostic from the deceased process; you can
restart the printer daemon with
may report unreliably. The status as
not always reflect the actual state of the printer.
Under some circumstances,
reports that a printer is ready and printing when the daemon is,
in fact, hung.
Output formatting is sensitive to the line length of the terminal;
this can result in widely-spaced columns.
is sometimes unable to open various files when the
lock file is malformed.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97