accept, reject - allow/prevent LP printer 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
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
Use the lpstat command (see lpstat(1)) to find the status of
For an overview of LP command interactions, see lp(1).
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
reason is reported by the lpstat command and by
the lp command when users direct requests to a
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.
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000
These examples assume you have a system with two printers named laser1
and jet2, and one class named lj that includes both printers.
To allow all destinations to accept print requests:
accept laser1 jet2 lj
To reject requests to the lj class destination, requiring users to
choose a printer:
To reject requests to the individual printer destinations, requiring
all requests to go through the class destination:
reject -r"use the lj destination" laser1 jet2
accept and reject operate on the local system only.
/etc/lp Directory of spooler configuration data
/var/adm/lp Directory of spooler log files
/var/spool/lp Directory of LP spooling files and
enable(1), lp(1), lpstat(1), lpadmin(1M), lpsched(1M), rcancel(1M),
rlp(1M), rlpdaemon(1M), rlpstat(1M).
Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000