lp.1 (2010 09)

l
lp(1) lp(1)
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. When cancel is used with a mix of different options
and arguments, it will operate first on id ..., next on dest ..., next on
-a, next on -e and finally on
-u,
irrespective of the order in which the options and arguments are specified in the command line.
id ... Specifies one or more requests to be canceled. id is a request
ID returned by lp or
lpalt.
dest ... Specifies one or more printers or printer classes. If a
-a, -e,or-u option is not
specified, cancel the request that is currently printing on each dest. In this case, dest
must be a printer, not a class. If a
-a, -e,or-u option is specified, specify the destina-
tion on which to perform the corresponding cancel operation. In this case, dest can be a
printer or a class.
-a Remove all requests the user owns on each dest ,orifdest is not specified and
-f option
is specified, remove all requests the user owns on all destinations in the system. The
owner of a request is determined by the user’s login name and the host name of the
machine where the
lp command was invoked.
-e Empty the spool queue of each dest ,orifdest is not specified and
-f option is specified,
empty the spool queue of all destinations in the system. Only users with appropriate
privileges can use this option.
-i Cancel only local requests.
-uuser Remove all requests belonging to user on each dest ,orifdest is not specified and
-f
option is specified, remove all requests belonging to user on all destinations in the sys-
tem. You can repeat the -u option to specify more users. Only users with appropriate
privileges can use this option.
-f Force cancel -a/-e/-u to act on all destinations in the system.
Printing Overview
A printer can print requests from one or two destination queues: its own private queue and an optional
class queue, which can serve one or more printers. The destination queues are set up with the
lpadmin
command. The lp command places a printing request into a printer or class destination queue as
directed by a user. The lpsched scheduler directs the requests from the destination queues to the
printers. The accept and reject commands control whether lp can place requests in the destination
queues. The enable and disable commands control whether lpsched can send a queued request to
a printer. If a printer has two queues and one queue is rejecting requests, users can still direct requests
to the other destination queue and have the requests printed. lpstat reports the current status of the
destination queues and the scheduler. See enable (1), lpstat (1), accept (1M), and lpadmin (1M).
EXTERNAL INFLUENCES
Environment Variables
LANG determines the locale to use for the locale categories when both LC_ALL and the corresponding
environment variable (beginning with LC_) do not specify a locale. If LANG is not set or is set to the
empty string, a default of "C" (see lang (5)) is used.
LC_ALL determines the locale to use to override any values for locale categories specified by the setting
of LANG or any environment variables beginning with LC_.
LC_CTYPE determines the locale for interpretation of sequences of bytes of text data as characters (e.g.,
single- verses multibyte characters in arguments and input files).
LC_MESSAGES determines the language in which messages are displayed.
LPDEST determines the output device or destination. If the LPDEST environment variable is not set,
the PRINTER environment variable is used. The -d dest option takes precedence over LPDEST.
PRINTER determines the output device or destination. If the LPDEST and PRINTER environment vari-
ables are not set, the default queue is used. The -d dest option and the LPDEST environment variable
takes precedence over PRINTER.
If any internationalization variable contains an invalid setting, the commands behave as if all interna-
tionalization variables are set to "C". See environ (5).
HP-UX 11i Version 3: September 2010 3 Hewlett-Packard Company 3