Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

lp(1) OSS Shell and Utilities Reference Manual
LC_ALL
When set with a nonempty string, overrides the values of all other internationalization
variables.
LC_CTYPE
Determines the locale for the interpretation of sequences of bytes of text data as char-
acters (for example, single-byte as opposed to multibyte characters in arguments and
input les).
LC_MESSAGES
Determines the locale to be used to affect the format and contents of diagnostic mes-
sages written to the standard error le and informative messages written to the standard
output le.
LC_TIME
Determines the format and contents of date and time strings displayed in the lp com-
mand banner page.
LPDEST
Names the output device or destination. If LPDEST is not set, the PRINTER environ-
ment variable is used. The -d variable takes precedence over LPDEST.If-d is not
specied and LPDEST contains a value that is not a valid destination, the lp command
exits with an error.
NLSPATH
Determines the location of message catalogs for processing the LC_MESSAGES vari-
able.
PRINTER
Names the output device or destination. If the -d and -W spl ags are not specied and
none of the LPDEST, PRINTER,orGUARDIAN_PRINTER environment variables
are set, the system default destination in the printcap le is used. The -d and the
-W spl ags and the LPDEST environment variable have precedence over the
PRINTER environment variable. If the -d and -W spl ags are not specied, the
LPDEST environment variable is not set, and the PRINTER environment variable
contains a value that is not a valid device or destination, the lp command exits with an
error.
Standard Output
The lp command associates a unique ID number from 1 through 4095 with each request and
writes it to the standard output le. The message includes the request ID and the output destina-
tion. This request ID can be used to cancel (see the cancel(1) reference page) the request or to
nd its status (see the lpstat(1) reference page).
HP Extensions
The lp command establishes a level-3 spooling session with a spooler collector.
Spooler Destination
The spooler routing name consists of the spooler collection process name (names returned from
the SPOOLCOM COLLECT command) followed by the spooler location name (names returned
from the SPOOLCOM LOC command, for example, $S.#TITAN3). The spooler location names
are the logical destinations of the print jobs. They may or may not be mapped to the real print
devices. If a print device is associated with a specic location, the job request is eventually
printed. Otherwise, the job request is left in the spooler area.
The Guardian spooler system uses the spooler location names to specify certain output attributes
such as double-sided printing and landscape printing. These names are specied in the spooler
conguration les. The user must select the appropriate spooler location for each print job.
572 Hewlett-Packard Company 527188-007