summaryrefslogtreecommitdiff
path: root/usr/src/man/man1b/lpc.1b
blob: 5f6a5700019a75d2f89e24e320215233b3224c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
'\" te
.\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
.\" Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
.TH LPC 1B "Feb 25, 2017"
.SH NAME
lpc \- line printer control program
.SH SYNOPSIS
.LP
.nf
\fB/usr/ucb/lpc\fR [\fIcommand\fR [\fIparameter\fR...]]
.fi

.SH DESCRIPTION
.LP
The \fBlpc\fR utility controls the operation of local printers.
.sp
.LP
Use \fBlpc\fR to perform the following functions:
.RS +4
.TP
.ie t \(bu
.el o
start or stop a printer,
.RE
.RS +4
.TP
.ie t \(bu
.el o
disable or enable a printer's spooling queue,
.RE
.RS +4
.TP
.ie t \(bu
.el o
rearrange the order of jobs in a print queue, or
.RE
.RS +4
.TP
.ie t \(bu
.el o
display the status of a printer print queue and printer daemon.
.RE
.sp
.LP
\fBlpc\fR can be run from the command line or interactively. Specifying
\fBlpc\fR with the optional \fIcommand\fR and\fIparameter\fR arguments causes
\fBlpc\fR to interpret the first argument as an \fBlpc\fR command, and all
other arguments as parameters to that command. Specifying \fBlpc\fR without
arguments causes it to run interactively, prompting the user for \fBlpc\fR
commands with \fBlpc>\fR. By redirecting the standard input, \fBlpc\fR can read
commands from a file.
.SH USAGE
.LP
\fBlpc\fR commands can be typed in their entirety or abbreviated to an
unambiguous substring. Some \fBlpc\fR commands are available to all users;
others are available only to super-users.
.sp
.LP
All users can execute the following \fBlpc\fR commands:
.sp
.ne 2
.na
\fB\fB?\fR [\fIcommand\fR \|.\|.\|.] | \fBhelp\fR [\fIcommand\fR \|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Displays a short description of \fIcommand\fR. \fIcommand\fR is an \fBlpc\fR
command. If \fIcommand\fR is not specified, displays a list of \fBlpc\fR
commands.
.RE

.sp
.ne 2
.na
\fB\fBexit\fR | \fBquit\fR\fR
.ad
.sp .6
.RS 4n
Exits from \fBlpc\fR.
.RE

.sp
.ne 2
.na
\fB\fBstatus\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Displays the status of print daemons and print queues. \fBall\fR specifies that
this command is performed on all locally attached printers. \fIprinter\fR
indicates this command is performed on specific printers. Specify \fIprinter\fR
as an atomic name. See \fBprinters.conf\fR(4) for information regarding naming
conventions for atomic names.
.RE

.sp
.LP
Only a super-user can execute the following \fBlpc\fR commands:
.sp
.ne 2
.na
\fB\fBabort\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Terminates an active spooling daemon. Disables printing (by preventing new
daemons from being started by \fBlpr\fR(1B)) for \fIprinter\fR. \fBall\fR
specifies this command is performed on all locally attached printers.
\fIprinter\fR indicates this command is performed on specific printers. Specify
\fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBclean\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.\|]\fR
.ad
.sp .6
.RS 4n
Removes files created in the print spool directory by the print daemon from
\fIprinter\fR \fI\&'s\fR print queue. \fBall\fR specifies that this command is
performed on all locally attached printers.\fIprinter\fR indicates this command
is performed on specific printers. Specify \fIprinter\fR as an atomic name. See
\fBprinters.conf\fR(4) for information regarding naming conventions for atomic
names.
.RE

.sp
.ne 2
.na
\fB\fBdisable\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Turns off the print queue for \fIprinter\fR. Prevents new printer jobs from
being entered into the print queue for \fIprinter\fRby \fBlpr\fR(1B). \fBall\fR
specifies that this command is performed on all locally attached printers.
\fIprinter\fR indicates this command is performed on specific printers. Specify
\fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBdown\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.\|] [\fImessage\fR]\fR
.ad
.sp .6
.RS 4n
Turns the queue for \fIprinter\fR off and disables printing on \fIprinter\fR.
Inserts \fImessage\fR in the printer status file. \fImessage\fR does not need
to be quoted; multiple arguments to \fImessage\fR are treated as arguments are
to \fBecho\fR(1). Use \fBdown\fR to take a printer down and inform users.
\fBall\fR specifies that this command is performed on all locally attached
printers. \fIprinter\fR indicates this command is performed on specific
printers. Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4)
for information regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBenable\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Enables \fBlpr\fR(1B) to add new jobs in the spool queue. \fBall\fR specifies
that this command is performed on all locally attached printers. \fIprinter\fR
indicates this command is performed on specific printers. Specify \fIprinter\fR
as an atomic name. See \fBprinters.conf\fR(4) for information regarding naming
conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBrestart\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Attempts to start a new printer daemon. \fBrestart\fR is useful when a print
daemon dies unexpectedly and leaves jobs in the print queue. \fBall\fR
specifies that this command is performed on all locally attached printers.
\fIprinter\fR indicates that this command is performed on specific printers.
Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for
information regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBstart\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Enables printing. Starts a spooling daemon for the \fIprinter\fR. \fBall\fR
specifies that this command is performed on all locally attached printers.
\fIprinter\fR indicates the command is performed on specific printers. Specify
\fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for information
regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBstop\fR [\fBall\fR | \fIprinter\fR\|.\|.\|.\|]\fR
.ad
.sp .6
.RS 4n
Stops a spooling daemon after the current job is complete. Disables printing at
that time. \fBall\fR specifies that this command is performed on all locally
attached printers. \fIprinter\fR indicates this command is performed on
specific printers. Specify \fIprinter\fR as an atomic name. See
\fBprinters.conf\fR(4) for information regarding naming conventions for atomic
names.
.RE

.sp
.ne 2
.na
\fB\fBtopq\fR \fIprinter\fR[\fIrequest-ID\fR\|.\|.\|.] [\fIuser\fR
\|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Moves \fIrequest-ID\fR or print jobs belonging to \fIuser\fR on \fIprinter\fR
to the beginning of the print queue. Specify \fIuser\fR as a user's login name.
Specify \fIprinter\fR as an atomic name. See \fBprinters.conf\fR(4) for
information regarding naming conventions for atomic names.
.RE

.sp
.ne 2
.na
\fB\fBup\fR [\fBall\fR | \fIprinter\fR \|.\|.\|.]\fR
.ad
.sp .6
.RS 4n
Turns the queue for \fIprinter\fR on and enables printing on \fIprinter\fR.
Deletes the message in the printer status file (inserted by \fBdown\fR). Use
\fBup\fR to undo the effects of \fBdown\fR. \fBall\fR specifies that this
command is performed on all locally attached printers. \fIprinter\fR indicates
this command is performed on specific printers. Specify \fIprinter\fR as an
atomic name. See \fBprinters.conf\fR(4) for information regarding naming
conventions for atomic names.
.RE

.SH EXIT STATUS
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 12n
Successful completion.
.RE

.sp
.ne 2
.na
\fBnon-zero\fR
.ad
.RS 12n
An error occurred.
.RE

.SH FILES
.ne 2
.na
\fB\fB/etc/printers.conf\fR\fR
.ad
.RS 24n
 System printer configuration database
.RE

.sp
.ne 2
.na
\fB\fB$HOME/.printers\fR\fR
.ad
.RS 24n
User-configurable printer database
.RE

.sp
.ne 2
.na
\fB\fBprinters.conf.byname\fR\fR
.ad
.RS 24n
NIS version of \fB/etc/printers.conf\fR
.RE

.sp
.ne 2
.na
\fB\fBou=printers\fR\fR
.ad
.RS 24n
LDAP version of \fB/etc/printers.conf\fR
.RE

.SH ATTRIBUTES
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Standard
.TE

.SH SEE ALSO
.LP
\fBlpq\fR(1B), \fBlpr\fR(1B), \fBlprm\fR(1B), \fBlpstat\fR(1),
\fBlpsched\fR(1M), \fBlpshut\fR(1M), \fBsvcadm\fR(1M), \fBprinters.conf\fR(4),
\fBattributes\fR(5)
.SH DIAGNOSTICS
.LP
Use the \fBsvcs\fR(1) utility to check if \fBsvc:/application/print/server\fR
is running. If it is not running, use \fBsvcadm enable
svc:/application/print/server\fR to start \fBlpsched\fR. See \fBsvcadm\fR(1M).
.SH NOTES
.LP
When IPP is in use, the user is prompted for a passphrase if the remote print
service is configured to require authentication.