Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (k - l) lp(1)
[\\node.]\$collector[.group[.destination]] |
In which:
• node is the system name |
• $collector is the spooler collector name |
• group and destination are part of the spooler location |
You can set the Guardian spooler name with the GUARDIAN_PRINTER environ- |
ment variable. The -W spl flag has precedence over the LPDEST and PRINTER |
environment variables, which have precedence over the GUARDIAN_PRINTER |
environment variable. If the -d and -W spl flags are not specified and none of the |
LPDEST, PRINTER,orGUARDIAN_PRINTER environment variables are set, the |
system default destination in the printcap file is used. If no valid destination can be |
found, the lp command exits with an error.
DESCRIPTION
The lp command sends the specified files and associated information (collectively called a
request) to a line printer for printing.
The lp command copies input files to an output printer device through the Guardian spooler sub-
system. The system default destination is a printer device or a Guardian spooler location. The
system default destination is configured by the system operator at system startup. If the system
default destination becomes unavailable or if a valid destination cannot be found, the lp com-
mand exits with a an error.
Files are always first copied to the spooling area. From there they are sent to the printer. Depend-
ing on printer availability, files specified in a print request may not actually be sent to a printer
from the spooling area until after the lp command successfully exits. When a job is sent to the
printer device, each print job has exclusive access to the printer device and cannot be interrupted.
Operands
file The pathname of a file to be printed. If no file operands are specified, or if a file
operand is specified as a - (hyphen), the standard input file is used. Guardian files are
preceded with the /G naming convention. The lp command must have read permission
to the file or it will return an error.
Standard Input Files
The standard input files can be OSS text files (filecode 180), Guardian EDIT files (filecode 101),
compiler listing files (filecode 129), and PostScript files (filecode 0). Using input files other than
the standard input file may produce unexpected results.
Standard input is used only if no file argument is specified or if file is specified as a - (hyphen).
Environment Variables
GUARDIAN_PRINTER
Specifies the Guardian spooler name. The -W spl flag has precedence over the |
LPDEST and PRINTER environment variables, which have precedence over the |
GUARDIAN_PRINTER environment variable. If the -d and -W spl flags are not |
specified, the LPDEST and PRINTER environment variables are not set, and |
GUARDIAN_PRINTER contains a value that is not a valid Guardian spooler name, |
the lp command exits with an error.
LANG Provides a default value for the internationalization variables that are unset or null. If
the LANG variable is unset or null, the corresponding value from the implementation-
specific default locale is used. If any of the internationalization variables contain an
invalid setting, the lp command behaves as if none of the variables have been defined.
527188-007 Hewlett-Packard Company 5−71