Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
lp(1) OSS Shell and Utilities Reference Manual
NLSPATH
Determines the location of message catalogs for processing the LC_MESSAGES vari-
able.
PRINTER
Names the output device or destination. If the LPDEST or PRINTER environment
variables are not set, the system default destination is used. The -d flag and the
LPDEST environment variable take precedence over PRINTER.If-d is not
specified, LPDEST is unset, and PRINTER 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 file. 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
find 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 specific 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 specified in the spooler
configuration files. The user must select the appropriate spooler location for each print job.
Search Alogrithm
The search algorithm for the printer locations is as follows. The printer destination specification
in the -d flag is used whenever it is specified. Otherwise, the printer location is first the value set
for the environment variable LPDEST, and then, if LPDEST is not set, the value set for the
environment variable PRINTER. When neither the LPDEST nor PRINTER environment vari-
able is set, a system default location value (#DEFAULT) is used. Most HP NonStop server
spooler systems are normally configured with a #DEFAULT location so jobs can always be
routed to a printer device.
printcap Database
Aliases for the spooler location names are stored in the printcap database file. The lp command
searches printcap everytime it needs to resolve the alias to its respective spooler location. A
system default location should always be specified in the printcap file and should appear as the
first entry in the file. printcap has the following format:
<alias name> <spooler location name>
The system is supplied with a default printcap file with aliases for all the devices that are avail-
able to the system. You can create your own printcap file as needed. If you create your own
printcap file, the lp command searches your own printcap file first and then the system default
printcap file in the /etc file.
5−72 Hewlett-Packard Company 527188-004