Copyright (C) 2000-2012 |
Manpages lpstatSection: User Commands (1)Updated: 7 Feb 1994 Index Return to Main Contents NAMElpstat - print information about the status of the LP print serviceSYNOPSISlpstat [ -A ] [ -d ] [ -r ] [ -R ] [ -s ] [ -t ] [ -a [list] ][ -c [list] ] [ -f [list] [ -l ] ] [ -o [list] ] [ -p [list] [ -D ] [ -l ] ] [ -P ] [ -S [list] [ -l ] ] [ -u [login-ID-list] ] [ -v [list] ] [ -Tdebugoptions ] [list] DESCRIPTIONThe lpstat command prints information about the current status of the LP print service. This is implemented as a front end to the LPRng lpq(1) program, and does not have the full functionality of the native lpstat program.If no options are given, then lpstat prints the status of all the user's print requests made by lp on the default printer. (see lp(1) and lpr(1)). Any arguments that are not options are assumed to be request-IDs as returned by lp or printer names. The lpstat command prints the status of such requests. The options may appear in any order and may be repeated and intermixed with other arguments. Some of the keyletters below may be followed by an optional list that can be in one of two forms: a list of items separated from one another by a comma, or a list of items separated from one another by spaces enclosed in quotes. For example:
Specifying all after any keyletter that takes list as an argument causes all information relevant to the keyletter to be printed. For example, the command:
prints the status of all output requests. The omission of a list following such key letters causes all information relevant to the key letter to be printed. For example, the command:
prints the status of all output requests. OPTIONSThe following options are supported:
ENVIRONMENTBy default, the destination printer is taken from the command line dest value, then the environment variables PRINTER, LPDEST, NPRINTER, NGPRINTER, then first entry in the printcap information, and and finally the default_printer entry from the configuration file, and then the compile time default. EXIT STATUSThe following exit values are returned:
FILESThe files used by LPRng are set by values in the printer configuration file. The following are a commonly used set of default values. /etc/lprng/lpd.conf LPRng configuration file ${HOME}/.printcap user printer description file /etc/lprng/printcap printer description file /etc/lprng/lpd.perms permissions /var/run/lprng/lpd lock file for queue control /var/spool/lpd spool directories /var/spool/lpd/QUEUE/control queue control /var/spool/lpd/QUEUE/log trace or debug log file /var/spool/lpd/QUEUE/acct accounting file /var/spool/lpd/QUEUE/status status file SEE ALSOlpd.conf(5), lpc(8), lpd(8), checkpc(8), lpr(1), lpq(1), lprm(1), printcap(5), lpd.perms(5), pr(1).DIAGNOSTICSMost of the diagnostics are self explanatory. If you are puzzled over the exact cause of failure, set the debugging level on (-T5) and run again. The debugging information will help you to pinpoint the exact cause of failure. HISTORYLPRng is a enhanced printer spooler system with functionality similar to the Berkeley LPR software. The LPRng mailing list is lprng@lprng.com; subscribe by sending mail to lprng-request@lprng.com with the word subscribe in the body. The software is available from ftp://ftp.lprng.com/pub/LPRng.AUTHORPatrick Powell <papowell@lprng.com>.
IndexThis document was created by man2html, using the manual pages. Time: 18:09:00 GMT, November 06, 2024 |