|HP-UX Reference > A
HP-UX 11i Version 3: February 2007
accept, reject — allow/prevent LP destination queuing requests
/usr/sbin/accept destination ...
/usr/sbin/reject [-r[reason]] destination ... [-r[reason] destination ...] ...
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 destination 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).
The reject command can have the following option.
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)).
These examples assume you have a system with two printers named laser1 and jet2, and one class named lj that includes both printers.
To reject requests to the lj class destination, requiring users to choose a printer: