2 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
3 .\" Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
4 .TH LPC 1B "Feb 25, 2017"
6 lpc \- line printer control program
10 \fB/usr/ucb/lpc\fR [\fIcommand\fR [\fIparameter\fR...]]
15 The \fBlpc\fR utility controls the operation of local printers.
18 Use \fBlpc\fR to perform the following functions:
23 start or stop a printer,
29 disable or enable a printer's spooling queue,
35 rearrange the order of jobs in a print queue, or
41 display the status of a printer print queue and printer daemon.
45 \fBlpc\fR can be run from the command line or interactively. Specifying
46 \fBlpc\fR with the optional \fIcommand\fR and\fIparameter\fR arguments causes
47 \fBlpc\fR to interpret the first argument as an \fBlpc\fR command, and all
48 other arguments as parameters to that command. Specifying \fBlpc\fR without
49 arguments causes it to run interactively, prompting the user for \fBlpc\fR
50 commands with \fBlpc>\fR. By redirecting the standard input, \fBlpc\fR can read
54 \fBlpc\fR commands can be typed in their entirety or abbreviated to an
55 unambiguous substring. Some \fBlpc\fR commands are available to all users;
56 others are available only to super-users.
59 All users can execute the following \fBlpc\fR commands:
63 \fB\fB?\fR [\fIcommand\fR \|.\|.\|.] | \fBhelp\fR [\fIcommand\fR \|.\|.\|.]\fR
67 Displays a short description of \fIcommand\fR. \fIcommand\fR is an \fBlpc\fR
68 command. If \fIcommand\fR is not specified, displays a list of \fBlpc\fR
75 \fB\fBexit\fR | \fBquit\fR\fR
85 \fB\fBstatus\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
89 Displays the status of print daemons and print queues. \fBall\fR specifies that
90 this command is performed on all locally attached printers. \fIprinter\fR
91 indicates this command is performed on specific printers. Specify \fIprinter\fR
92 as an atomic name. See \fBprinters.conf\fR(4) for information regarding naming
93 conventions for atomic names.
98 Only a super-user can execute the following \fBlpc\fR commands:
102 \fB\fBabort\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
106 Terminates an active spooling daemon. Disables printing (by preventing new
107 daemons from being started by \fBlpr\fR(1B)) for \fIprinter\fR. \fBall\fR
108 specifies this command is performed on all locally attached printers.
109 \fIprinter\fR indicates this command is performed on specific printers. Specify
110 \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
111 regarding naming conventions for atomic names.
117 \fB\fBclean\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.\|]\fR
121 Removes files created in the print spool directory by the print daemon from
122 \fIprinter\fR \fI\&'s\fR print queue. \fBall\fR specifies that this command is
123 performed on all locally attached printers.\fIprinter\fR indicates this command
124 is performed on specific printers. Specify \fIprinter\fR as an atomic name. See
125 \fBprinters.conf\fR(4) for information regarding naming conventions for atomic
132 \fB\fBdisable\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
136 Turns off the print queue for \fIprinter\fR. Prevents new printer jobs from
137 being entered into the print queue for \fIprinter\fRby \fBlpr\fR(1B). \fBall\fR
138 specifies that this command is performed on all locally attached printers.
139 \fIprinter\fR indicates this command is performed on specific printers. Specify
140 \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
141 regarding naming conventions for atomic names.
147 \fB\fBdown\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.\|] [\fImessage\fR]\fR
151 Turns the queue for \fIprinter\fR off and disables printing on \fIprinter\fR.
152 Inserts \fImessage\fR in the printer status file. \fImessage\fR does not need
153 to be quoted; multiple arguments to \fImessage\fR are treated as arguments are
154 to \fBecho\fR(1). Use \fBdown\fR to take a printer down and inform users.
155 \fBall\fR specifies that this command is performed on all locally attached
156 printers. \fIprinter\fR indicates this command is performed on specific
157 printers. Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4)
158 for information regarding naming conventions for atomic names.
164 \fB\fBenable\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
168 Enables \fBlpr\fR(1B) to add new jobs in the spool queue. \fBall\fR specifies
169 that this command is performed on all locally attached printers. \fIprinter\fR
170 indicates this command is performed on specific printers. Specify \fIprinter\fR
171 as an atomic name. See \fBprinters.conf\fR(4) for information regarding naming
172 conventions for atomic names.
178 \fB\fBrestart\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
182 Attempts to start a new printer daemon. \fBrestart\fR is useful when a print
183 daemon dies unexpectedly and leaves jobs in the print queue. \fBall\fR
184 specifies that this command is performed on all locally attached printers.
185 \fIprinter\fR indicates that this command is performed on specific printers.
186 Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for
187 information regarding naming conventions for atomic names.
193 \fB\fBstart\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
197 Enables printing. Starts a spooling daemon for the \fIprinter\fR. \fBall\fR
198 specifies that this command is performed on all locally attached printers.
199 \fIprinter\fR indicates the command is performed on specific printers. Specify
200 \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
201 regarding naming conventions for atomic names.
207 \fB\fBstop\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.\|]\fR
211 Stops a spooling daemon after the current job is complete. Disables printing at
212 that time. \fBall\fR specifies that this command is performed on all locally
213 attached printers. \fIprinter\fR indicates this command is performed on
214 specific printers. Specify \fIprinter\fR as an atomic name. See
215 \fBprinters.conf\fR(4) for information regarding naming conventions for atomic
222 \fB\fBtopq\fR \fIprinter\fR[\fIrequest-ID\fR\|.\|.\|.] [\fIuser\fR
227 Moves \fIrequest-ID\fR or print jobs belonging to \fIuser\fR on \fIprinter\fR
228 to the beginning of the print queue. Specify \fIuser\fR as a user's login name.
229 Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for
230 information regarding naming conventions for atomic names.
236 \fB\fBup\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
240 Turns the queue for \fIprinter\fR on and enables printing on \fIprinter\fR.
241 Deletes the message in the printer status file (inserted by \fBdown\fR). Use
242 \fBup\fR to undo the effects of \fBdown\fR. \fBall\fR specifies that this
243 command is performed on all locally attached printers. \fIprinter\fR indicates
244 this command is performed on specific printers. Specify \fIprinter\fR as an
245 atomic name. See \fBprinters.conf\fR(4) for information regarding naming
246 conventions for atomic names.
251 The following exit values are returned:
258 Successful completion.
273 \fB\fB/etc/printers.conf\fR\fR
276 System printer configuration database
282 \fB\fB$HOME/.printers\fR\fR
285 User-configurable printer database
291 \fB\fBprinters.conf.byname\fR\fR
294 NIS version of \fB/etc/printers.conf\fR
300 \fB\fBou=printers\fR\fR
303 LDAP version of \fB/etc/printers.conf\fR
308 See \fBattributes\fR(5) for descriptions of the following attributes:
316 ATTRIBUTE TYPE ATTRIBUTE VALUE
318 Interface Stability Standard
323 \fBlpq\fR(1B), \fBlpr\fR(1B), \fBlprm\fR(1B), \fBlpstat\fR(1),
324 \fBlpsched\fR(1M), \fBlpshut\fR(1M), \fBsvcadm\fR(1M), \fBprinters.conf\fR(4),
328 Use the \fBsvcs\fR(1) utility to check if \fBsvc:/application/print/server\fR
329 is running. If it is not running, use \fBsvcadm enable
330 svc:/application/print/server\fR to start \fBlpsched\fR. See \fBsvcadm\fR(1M).
333 When IPP is in use, the user is prompted for a passphrase if the remote print
334 service is configured to require authentication.