Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
lp(1) OSS Shell and Utilities Reference Manual
NAME
lp - Sends files to a printer
SYNOPSIS
lp
[-c ]
[-d dest ]
[-n copies ]
[-s ]
[-t title ]
[-W save ]
[-W pri=priority ]
[file ... ]
FLAGS
Flags for the lp command can appear in any order and can be mixed with filenames.
-c Copies the input files to the spooling area rather than directly to the printer device.
This is the default action.
-d dest Specifies dest as the spooler destination for the job. dest can be specified as an alias
that maps to a Guardian spooler location name. Spooler location aliases can be located
in the printcap file in the /etc directory. The lp command checks the printcap file to
resolve name mapping. If the destination name does not map to a physical printer dev-
ice, the files to be printed are left in the spooling area for further disposition. If the des-
tination name maps to an invalid printer location, lp exits with a nonzero exit status.
The destination name can be set with the environment variables LPDEST and
PRINTER. The -d flag has precedence over LPDEST, which has precedence over
PRINTER.If-d is not specified and neither the LPDEST nor PRINTER environ-
ment variable is set, the system default destination in the printcap file is used. The lp
command exits with a nonzero exit status if no valid destination can be found.
-n copies Specifies the number of copies to be printed of each file listed in the lp request. copies
is a number in the range 1 through 32767. When multiple files are to be printed, all
copies of one file are printed before printing of the next file is started. The default
value of copies is 1.
-s Suppresses messages from the lp command.
-t title Specifies a report name for the print job, where the argument title is a string of up to 16
alphanumeric characters and blank spaces. The report name is printed on the banner
page of the output. The default report name is the user’s Guardian logon name.
HP Extensions
-W save Saves the print job in the spooler after it has been printed.
-W pri=priority
Specifies the print request priority. The argument priority is defined as an integer 0
through 8, with 8 being the highest priority. The default value is 4. Normally, requests
with higher priorities are printed before requests with lower priorities.
5−70 Hewlett-Packard Company 527188-003