
lpstat(1) | lpstat(1) |
| if none of the variables had been de®ned. |
LC_ALL | If set to a |
| nationalisation variables. |
LC_CTYPE | Determine the locale for the interpretation of sequences of bytes of text |
| data as characters (for example, single- as opposed to |
| in arguments). |
LC_MESSAGES | Determine the locale that should be used to affect the format and contents |
| of diagnostic messages written to standard error, and informative messages |
| written to standard output. |
LC_TIME | Determine the format of date and time strings output when displaying line |
| printer status information with the |
NLSPATH | Determine the location of message catalogues for the processing of |
| LC_MESSAGES. |
TZ | Determine the timezone used with date and time strings. |
ASYNCHRONOUS EVENTS |
|
Default. |
|
STDOUT
The standard output is a text ®le containing the information described in OPTIONS, in an unspeci®ed for- mat.
STDERR
Used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
The following exit values are returned:
0Successful completion. >0 An error occurred.
CONSEQUENCES OF ERRORS
Default.
APPLICATION USAGE
The lpstat utility cannot reliably determine the status of print requests in all conceivable circumstances. When the printer is under the control of another operating system or resides on a remote system across a network, it need not be possible to determine the status of the print job after it has left the control of the local operating system. Even on local printers, spooling hardware in the printer may make it appear that the print job has been completed long before the ®nal page is printed.
EXAMPLES
1.Obtain the status of two printers, the pathnames of two printers, a list of all class names and the status of the request named
lpstat
2.Obtain user print job status using the obsolescent mixed blank and comma form: lpstat
FUTURE DIRECTIONS
A version of lpstat that fully supports the XBD speci®cation, Section 10.2, Utility Syntax Guidelines may be introduced in a future issue.
− 2 − | Section 1−477 |
l