HP-UX Reference (11i v2 03/08) - 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 interna-
tionalisation 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
internationalisation 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 charac-
ters in arguments).
LC_MESSAGES Determine the locale that should be used to affect the format and con-
tents 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 -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
variable is not set, the PRINTER environment variable is used.
PRINTER Determine the output device or destination. If the PRINTER environ-
ment variable is not set, the default queue is used. LPDEST environ-
ment 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.
Section 1−−486 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003