enable(1)

enable(1)

NAME

enable, disable - enable/disable LP printers

SYNOPSIS

enable printers

disable [-c][-r[reason] ] printers

DESCRIPTION

The enable command activates the named printers, enabling them to print requests taken by lp. Use lpstat to ®nd the status of printers (see lp(1) and lpstat(1)).

disable deactivates the named printers, disabling them from printing requests taken by lp. By default, any requests that are currently printing on the designated printers are reprinted in their entirety either on the same printer or on another member of the same class. Use lpstat to ®nd the status of printers.

Options

disable recognizes the following options:

-c

Cancel any requests that are currently printing on any of the designated printers.

-r[reason]

Associate a reason with the deactivation of the printers. This reason applies to all

 

printers mentioned up to the next -roption. If the -roption is not present or the

 

-roption is given without a reason, a default reason is used. reason is reported by

 

lpstat. The maximum length of the reason message is 80 bytes.

EXTERNAL INFLUENCES

Environment Variables

LANG determines the language in which messages are displayed.

If LANG is not speci®ed or is null, it defaults to C (see lang(5)).

If any internationalization variable contains an invalid setting, all internationalization variables default to

C(see environ(5)).

International Code Set Support

Single- and multibyte character code sets are supported.

EXAMPLES

Enable printer snowwhite to accept requests:

enable snowwhite

Deactivate printer snowwhite and cancel any logged jobs:

disable -c snowwhite

WARNINGS

If the restrict cancel feature (selected by the lpadmin -orcoption Ð see lpadmin(1M)) is enabled, disable ignores the -coption.

enable and disable perform their operation on the local system only.

FILES

/etc/lp/*

/usr/lib/lp/*

/var/adm/lp/*

/var/spool/lp/*

SEE ALSO

lp(1), lpstat(1), accept(1M), lpadmin(1M), lpsched(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M).

e

HP-UX Release 11i: December 2000

− 1 −

Section 1237