|HP-UX Reference > E
HP-UX 11i Version 3: February 2007
enable, disable — enable/disable LP printers
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 find the status of printers.
disable recognizes the following options:
LANG determines the language in which messages are displayed.
If LANG is not specified 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)).
Enable printer snowwhite to accept requests:
Deactivate printer snowwhite and cancel any logged jobs:
disable -c snowwhite
If the restrict cancel feature (selected by the lpadmin -orc option — see lpadmin(1M)) is enabled, and the user is neither administrator nor the owner of the currently printing request on the designated printer, disable ignores the -c option.
enable and disable perform their operation on the local system only.