'\" te .\" Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. .\" Copyright 1989 AT&T .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH accept 1M "5 Jun 2006" "SunOS 5.11" "System Administration Commands" .SH NAME accept, reject \- accept or reject print requests .SH SYNOPSIS .LP .nf \fBaccept\fR \fIdestination\fR... .fi .LP .nf \fBreject\fR [\fB-r\fR \fIreason\fR] \fIdestination\fR... .fi .SH DESCRIPTION .sp .LP \fBaccept\fR allows the queueing of print requests for the named destinations. .sp .LP \fBreject\fR prevents queueing of print requests for the named destinations. .sp .LP Use \fBlpstat\fR \fB-a\fR to check if destinations are accepting or rejecting print requests. .sp .LP Generally, \fBaccept\fR and \fBreject\fR are run on the print server to control local print queues. Under some configurations, \fBaccept\fR and \fBreject\fR are run on client systems when IPP is being used to communicate between client and server. .SH OPTIONS .sp .LP The following options are supported for \fBreject\fR: .sp .ne 2 .mk .na \fB\fB-r\fR \fIreason\fR\fR .ad .RS 13n .rt Assigns a reason for rejection of print requests for \fIdestination.\fR .sp \fIreason\fR is reported by \fBlpstat\fR \fB-a\fR. By default, \fIreason\fR is \fBunknown reason\fR for existing destinations, and \fBnew\fR \fBprinter\fR for destinations added to the system but not yet accepting requests. Enclose \fIreason\fR in quotes if it contains blanks. .RE .SH OPERANDS .sp .LP The following operands are supported: .sp .ne 2 .mk .na \fB\fIdestination\fR\fR .ad .RS 15n .rt The name of the destination accepting or rejecting print requests. Destination specifies the name of a printer or class of printers (see \fBlpadmin\fR(1M)). Specify \fIdestination\fR using atomic name or URI-style (scheme://endpoint) names. See \fBprinters.conf\fR(4) for information regarding the naming conventions for destinations. .RE .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 12n .rt Successful completion. .RE .sp .ne 2 .mk .na \fBnon-zero\fR .ad .RS 12n .rt An error occurred. .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/etc/printers.conf\fR\fR .ad .RS 24n .rt System printer configuration database .RE .sp .ne 2 .mk .na \fB\fB$HOME/.printers\fR\fR .ad .RS 24n .rt User-configurable printer database .RE .sp .ne 2 .mk .na \fB\fBou=printers\fR\fR .ad .RS 24n .rt LDAP version of \fB/etc/printers.conf\fR .RE .sp .ne 2 .mk .na \fB\fBprinters.conf.byname\fR\fR .ad .RS 24n .rt \fBNIS\fR version of \fB/etc/printers.conf\fR .RE .sp .ne 2 .mk .na \fB\fBprinters.org_dir\fR\fR .ad .RS 24n .rt \fBNIS+\fR version of \fB/etc/printers.conf\fR .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ CSIEnabled. See \fBNOTES\fR. _ Interface StabilityObsolete .TE .SH SEE ALSO .sp .LP \fBenable\fR(1), \fBlp\fR(1), \fBlpstat\fR(1), \fBlpadmin\fR(1M), \fBlpsched\fR(1M), \fBprinters.conf\fR(4), \fBattributes\fR(5) .SH NOTES .sp .LP \fBaccept\fR and \fBreject\fR affect only queueing on the print server's spooling system. Requests made from a client system remain queued in the client system's queueing mechanism until they are cancelled or accepted by the print server's spooling system. .sp .LP \fBaccept\fR is CSI-enabled except for the \fIdestination\fR name. .sp .LP When IPP is in use, the user is prompted for a passphrase if the remote print service is configured to require authentication.