HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

a
accept(1M) accept(1M)
NAME
accept, reject - allow/prevent LP printer queuing requests
SYNOPSIS
/usr/sbin/accept
destination ...
/usr/sbin/reject
[-r[reason]] destination ... [
-r[reason] destination ...] ...
DESCRIPTION
The
accept command permits the lp command (see lp(1)) to accept printing requests for each named LP
printer or printer class destination queue.
The
reject command causes the lp command to reject subsequent printing requests for each named des-
tination queue. Requests already queued will continue to be processed for printing by the
lpsched
scheduler (see lpsched(1M)).
Use the lpstat command (see lpstat(1)) to find the status of destination queues.
For an overview of LP command interactions, see lp(1).
Options
The
reject command can have the following option.
-r[reason] Specifies a string that is used to explain why the
lp command is not accepting
requests for a destination. reason applies to all queues mentioned up to the next
-r
option. If reason or -r[reason] is omitted, the default is "reason unknown
". The
maximum length of reason is 80 bytes.
reason is reported by the
lpstat command and by the lp command when users
direct requests to a rejected destination.
EXTERNAL INFLUENCES
Environment Variables
The LANG variable determines the language in which messages are displayed. If LANG 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 laser1 and jet2, and one class
named
lj that includes both printers.
Example 1
To allow all destinations to accept print requests:
accept laser1 jet2 lj
Example 2
To reject requests to the lj class destination, requiring users to choose a printer:
reject lj
Example 3
To reject requests to the individual printer destinations, requiring all requests to go through the class desti-
nation:
accept lj
reject -r"use the lj destination" laser1 jet2
WARNINGS
accept and reject operate on the local system only.
Section 1M2 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005