Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (HP-UX-11.11)
Apropos / Subsearch:
optional field

 accept(1M)							  accept(1M)

      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
      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.

	   -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.

    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.

 Hewlett-Packard Company	    - 1 -   HP-UX Release 11i: November 2000

 accept(1M)							  accept(1M)

      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

      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