Annotation of 43BSDTahoe/man/man1/lpq.1, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.