Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > A

accept(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

accept, reject — allow/prevent LP destination 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 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).

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 reason is "reason unknown ". 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 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 destination:

accept lj reject -r"use the lj destination" laser1 jet2

WARNINGS

accept and reject operate on the local system only.

FILES

/etc/lp

Directory of spooler configuration data

/var/adm/lp

Directory of spooler log files

/var/spool/lp

Directory of LP spooling files and directories

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.