Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

reject(1m) [hpux man page]

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 destination. reason applies to all queues mentioned up to the next option. If reason or is omitted, the default reason is "". The maximum length of reason 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 command 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 ALSO
enable(1), lp(1), lpstat(1), lpadmin(1M), lpsched(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M). accept(1M)

Check Out this Related Man Page

accept(1M)                                                System Administration Commands                                                accept(1M)

NAME
accept, reject - accept or reject print requests SYNOPSIS
accept destination... reject [-r reason] destination... DESCRIPTION
accept allows the queueing of print requests for the named destinations. reject prevents queueing of print requests for the named destinations. Use lpstat -a to check if destinations are accepting or rejecting print requests. accept and reject must be run on the print server; they have no meaning to a client system. OPTIONS
The following options are supported for reject: -r reason Assigns a reason for rejection of print requests for destination. Enclose reason in quotes if it contains blanks. reason is reported by lpstat -a. By default, reason is unknown reason for existing destinations, and new printer for destinations added to the system but not yet accepting requests. OPERANDS
The following operands are supported. destination The name of the destination accepting or rejecting print requests. Destination specifies the name of a printer or class of printers (see lpadmin(1M)). Specify destination using atomic name. See printers.conf(4) for information regarding the naming conventions for atomic names. EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/var/spool/lp/* LP print queue. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ |CSI |Enabled (see NOTES) | +-----------------------------+-----------------------------+ SEE ALSO
enable(1), lp(1), lpstat(1), lpadmin(1M), lpsched(1M), printers.conf(4), attributes(5) NOTES
accept and reject affect only queueing on the print server's spooling system. Requests made from a client system remain queued in the client system's queueing mechanism until they are cancelled or accepted by the print server's spooling system. accept is CSI-enabled except for the destination name. SunOS 5.10 8 Feb 1999 accept(1M)
Man Page