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

lp(1) OSS Shell and Utilities Reference Manual
NAME
lp - Sends les to a printer
SYNOPSIS
lp
[-c ]
[-d dest ]
[-n copies ]
[-s ]
[-t title ]
[-W save ]
[-W pri=priority ]
[-W spl=spooler_name ]|
[le ... ]
FLAGS
Flags for the lp command can appear in any order and can be mixed with lenames.
-c Copies the input les to the spooling area rather than directly to the printer device.
This is the default action.
-d dest Species dest as the spooler destination for the job. dest can be specied as an alias
that maps to a Guardian spooler location name. Spooler location aliases can be located
in the printcap le in the /etc directory. The lp command checks the printcap le to
resolve name mapping. If the destination name does not map to a physical printer dev-
ice, the les 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 an error.
The destination name can be set with the environment variables LPDEST and
PRINTER. The -d ag has precedence over LPDEST, which has precedence over
PRINTER. 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 lp command exits with an error if
no valid destination can be found.
-n copies Species the number of copies to be printed of each le listed in the lp request. copies
is a number in the range 1 through 32767. When multiple les are to be printed, all
copies of one le are printed before printing of the next le is started. The default
value of copies is 1.
-s Suppresses messages from the lp command.
-t title Species 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 users Guardian logon name.
HP Extensions
-W save Saves the print job in the spooler after it has been printed.
-W pri=priority
Species the print request priority. The argument priority is dened 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.
-W spl=spooler_name
Species the Guardian spooler location, which can be a maximum of 40 characters. |
Specify the spooler_name parameter as: |
570 Hewlett-Packard Company 527188-007