lpstat outputs information about the current status of all requests submitted with lp.
Nonprivileged users are shown information relating only to print jobs submitted under their own login names.
Privileged users ($TSOS) are shown information relating to all print jobs.
Currently printing jobs and jobs which have already been submitted can be aborted or canceled with cancel.
Syntax
lpstat[ -drst][ -a[list]][ -c[list]][ -o[list]][ -p[list]][ -u[list]][ ID....] |
No option specified lpstat prints the following information of all the user's print requests made by lp on standard output:
Options list can be a list of items separated from one another by a comma, or a quoted list of items separated from one another by a comma or one or more blank characters, or combiniton of both.
Write the acceptance status of destinations for output request.
Write the class names and their members.
Write the system default destination for output request in the following format:
Write the status of output requests.
Write the status of printers.
Write the status of the line printer request scheduler:
Write a status summary, including the status of the line printer scheduler, the system default destination, a list of class names and their members:
Write all status information (see Example 2).
Write the status of output requests for users.
A request ID, as returned by lp. |
Variable
TZ Defines the time zone within date and time specifications. |
Locale
The following environment variables affect the execution of lpstat: LANG Provide a default value for the internationalization variables that are unset or null. If LANG is unset of null, the corresponding value from the implementation-specific default locale will be used. If any of the internationalization variables contains an invalid setting, the utility will behave as if none of the variables had been defined. LC_ALL If set to a non-empty string value, override the values of all the other internationalization variables. LC_CTYPE Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments and input files), the classification of characters as upper- to lower-case, and the mapping of characters from one case to the other. LC_MESSAGES Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. LC_TIME Determine the format of date and time strings output when displaying line printer status information with the -a, -o, -p, -t or -u options. NLSPATH Determine the location of message catalogs for the processing of LC_MESSAGES. |
Example 1
Information of all submitted and currently running printing jobs:
|
Example 2
Output of all status information
|
See also
lp, cancel |