HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

l
lpstat(1) lpstat(1)
ENVIRONMENT VARIABLES
The following environment variables affect the execution of
lpstat:
LANG Provide a default value for the internationalisation variables that are unset or
null. If LANG is unset or null, the corresponding value from the
implementation-specific default locale will be used. If any of the international-
isation 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 interna-
tionalisation 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 argu-
ments).
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 writ-
ten to standard output.
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 catalogues for the processing of
LC_MESSAGES.
TZ Determine the timezone used with date and time strings.
LPDEST Determine the output device or destination. If the LPDEST environment vari-
able is not set, the PRINTER environment variable is used.
PRINTER Determine the output device or destination. If the PRINTER environment
variable is not set, the default queue is used. LPDEST environment variable
takes precedence over PRINTER.
ASYNCHRONOUS EVENTS
Default.
STDOUT
The standard output is a text file containing the information described in OPTIONS, in an unspecified
format.
STDERR
Used only for diagnostic messages.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
The following exit values are returned:
0 Successful 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 cir-
cumstances. 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 final page is printed.
HP-UX 11i Version 2: September 2004 − 2 − Hewlett-Packard Company Section 1−−531