enable(1) CLIX enable(1)
NAME
enable, disable - Enables/disables LP printers
SYNOPSIS
enable printer ...
disable [-c] [-r[reason]] printer ...
FLAGS
-c Cancels any requests that are currently printing on any of
the designated printers.
-r[reason] Associates a reason with the deactivation of the printers.
This reason applies to all printers mentioned up to the next
-r flag. If the -r flag is not present or the -r flag is
given without a reason, then a default reason will be used.
Thereason is reported by lpstat.
DESCRIPTION
The enable command activates the named printers, enabling them to print
requests taken by lp. Use lpstat to find the status of printers.
The disable command deactivates the named printers, disabling them from
printing requests taken by lp. By default, any requests that are
currently printing on the designated printers will be 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.
EXAMPLES
1. To enable the printer named ilp811, enter the following command:
enable ilp811
2. To cancel all requests for the printer epson80:
disable -c -r "printer exploded" epson80
This command will cancel all request for the printer epson80, and
disable the printer. Entering a subsequent lpstat command will show
``printer exploded'' as the reason for the printer being disabled.
FILES
/usr/spool/lp/*
2/94 - Intergraph Corporation 1
enable(1) CLIX enable(1)
DIAGNOSTICS
name does not exist
The named printer does not exist.
printer name was already enabled
An attempt was made to enable a printer which was already enabled.
printer name was already disabled
An attempt was made to disable a printer which was already
disabled.
EXIT VALUES
The enable command returns a value of 1 if an error occurred.
RELATED INFORMATION
Commands: lp(1), lpstat(1)
2 Intergraph Corporation - 2/94