HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)
l
lp(1) lp(1)
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 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.
-w Write a message to the user’s terminal after the request has been printed. If the user is
not logged in or (for remote printing) if
rlpdaemon (see rlpdaemon(1M)) is not running
on the user’s local system, 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 "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 (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. At least one id or printer must be specified.
The cancellation of a request that is currently printing frees the printer to print its next available request.
cancel Options and Arguments
cancel 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 one or more requests. id is a request ID returned by lp or lpalt.
printer ... Specifies one or more printers. printer is the name of a printer, not a class. Either cancel
the request that is currently printing on each printer, or, if an -a, -e,or-u option is
specified, specify the printer on which to perform the corresponding operation.
Section 1−−490 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005