accept(1M)accept(1M)NAME
accept, reject - allow/prevent LP destination queuing requests
SYNOPSIS
destination ...
destination ... destination ...] ...
DESCRIPTION
The command permits the command (see lp(1)) to accept printing requests
for each named LP printer or printer class destination queue.
The command causes the command to reject subsequent printing requests
for each named destination queue. Requests already queued will con‐
tinue to be processed for printing by the scheduler (see lpsched(1M)).
Use the command (see lpstat(1)) to find the status of destination
queues.
For an overview of LP command interactions, see lp(1).
Options
The command can have the following option.
Specifies a string that is used to explain why the
command is not accepting requests for a destina‐
tion. reason applies to all queues mentioned up
to the next option. If reason or is omitted, the
default reason is "". The maximum length of rea‐
son is 80 bytes. reason message of length
greater than 80 bytes is truncated to 80 bytes.
reason is reported by the command and by the com‐
mand when users direct requests to a rejected
destination.
EXTERNAL INFLUENCES
Environment Variables
The variable determines the language in which messages are displayed.
If is not specified or is set to the empty string, 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
These examples assume you have a system with two printers named and and
one class named that includes both printers.
Example 1
To allow all destinations to accept print requests:
Example 2
To reject requests to the class destination, requiring users to choose
a printer:
Example 3
To reject requests to the individual printer destinations, requiring
all requests to go through the class destination:
WARNINGS
and operate on the local system only.
FILES
Directory of spooler configuration data
Directory of spooler log files
Directory of LP spooling files and directories
SEE ALSOenable(1), lp(1), lpstat(1), lpadmin(1M), lpsched(1M), rcancel(1M),
rlp(1M), rlpdaemon(1M), rlpstat(1M).
accept(1M)