HP-UX Reference (11i v1 00/12) - 1 User Commands A-M (vol 1)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
lpstat(1) lpstat(1)
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 inter-
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 multi-byte characters
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 -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.
ASYNCHRONOUS EVENTS
Default.
STDOUT
The standard output is a text file containing the information described in OPTIONS, in an unspecified for-
mat.
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 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 final 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 HiPri-33:
lpstat -plaser1,laser4 -v"laser2 laser3" -c HiPri-33
2. Obtain user print job status using the obsolescent mixed blank and comma form:
lpstat -u"ddg,gmv, maw"
FUTURE DIRECTIONS
A version of lpstat that fully supports the XBD specification, Section 10.2, Utility Syntax Guidelines may
be introduced in a future issue.
HP-UX Release 11i: December 2000 − 2 − Section 1−−477
___
___