HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

l
lp(1) lp(1)
-nnumber Print number copies of the output. If illegal number of copies is specified with this option,
the default number of copies is 1.
-ooption Specify a printer-dependent option. You can specify several printer options by repeating
the
-o option. For information about the options that are available for a printer supported
on your system, see the interface script for the printer name in the
/etc/lp/interface
directory.
-ppriority Set the priority of the print request. priority must be in the range 0 (lowest priority) to 7
(highest priority). The priority is used by the
lpsched scheduler to select the next
spooled file for the targeted printer or class of printers. If the priority is less than the
fence, the minimum priority set for the printer, the print request is deferred until the fence
is lowered or the priority is raised. The default for a printer queue is the default priority
set by the
lpadmin or lpfence command (see lpadmin(1M) and lpsched(1M)). The
default for a class queue is the highest default priority among printers in the class.
-s Suppress standard output messages from lp such as "
request id is ...". Error mes-
sages are still displayed on standard error.
-ttitle Print title on the banner page of the output. The maximum length of the title is 79 bytes.
title of length greater than 79 bytes is truncated to 79 bytes.
-w Write a message to the user’s terminal after the request has been printed. If the user is
not logged in, or if the user has denied messages to his terminal (see mesg(1)), or (for
remote printing) if
rlpdaemon (see rlpdaemon(1M)) is not running on the user’s local sys-
tem, mail will be sent instead.
lpalt Command
The lpalt command alters a request made by a previous lp command, if it is not currently printing. (To
requeue a currently printing request, use the disable command (see enable(1)) to stop the printer.)
lpalt Options
lpalt recognizes the following options and arguments, which can be specified in any order. Blanks are
not permitted between a keyletter and its argument.
id Specifies the request to be altered. id is a request ID returned by lp
or lpalt.
-ddest Requeue the request to the named printer or class dest. A new unique request
ID is written
to standard output.
-i Alter only local requests.
-m Send mail upon normal completion of the print request.
-nnumber Change the number of copies to number.
-ooption Specify a printer-dependent option. You can specify several printer options by repeating
the
-o option. All -o options from previous lp and lpalt commands for this request ID
are deleted.
-ppriority Change the request’s priority to priority.
-s Suppress standard output messages from lpalt such as "new request id is ...".
Error messages are still displayed on standard error.
-ttitle Change the title on the banner page of the output.
-w Write a message to the user’s terminal after the request has been printed. If the user is
not logged in or if the user has denied messages to his terminal (see mesg(1)) or (for remote
printing) if rlpdaemon (see rlpdaemon(1M)). is not running on the user’s local system,
mail will be sent instead.
cancel Command
The cancel command cancels requests that were made with the lp command, even if they are currently
printing.
The cancellation of a request that is currently printing frees the printer to print its next available request.
600 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update