1 .\" $NetBSD: lpc.8,v 1.16 2003/08/07 11:25:27 agc Exp $
3 .\" Copyright (c) 1983, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)lpc.8 8.5 (Berkeley) 4/28/95
37 .Nd line printer control program
48 is used by the system administrator to control the
49 operation of the line printer system.
50 For each line printer configured in
54 .Bl -bullet -offset indent
56 disable or enable a printer,
58 disable or enable a printer's spooling queue,
60 rearrange the order of jobs in a spooling queue,
62 find the status of printers, and their associated
63 spooling queues and printer daemons.
66 Without any arguments,
68 will prompt for commands from the standard input.
69 If arguments are supplied,
71 interprets the first argument as a command and the remaining
72 arguments as parameters to the command.
74 may be redirected causing
76 to read commands from file.
77 Commands may be abbreviated;
78 the following is the list of recognized commands.
80 .Bl -tag -width Ds -compact
81 .It Ic \&? No [ command ... ]
82 .It Ic help No [ command ... ]
83 Print a short description of each command specified in the argument list,
84 or, if no argument is given, a list of the recognized commands.
86 .It Ic abort No {\ all\ |\ printer\ }
87 Terminate an active spooling daemon on the local host immediately and
88 then disable printing (preventing new daemons from being started by
90 for the specified printers.
92 .It Ic clean No {\ all\ |\ printer\ }
93 Remove any temporary files, data files, and control files that cannot
94 be printed (i.e., do not form a complete printer job)
95 from the specified printer queue(s) on the local machine.
97 .It Ic disable No {\ all\ |\ printer\ }
98 Turn the specified printer queues off.
100 printer jobs from being entered into the queue by
103 .It Ic down No {\ all\ |\ printer\ } message ...
104 Turn the specified printer queue off, disable printing and put
106 in the printer status file.
107 The message doesn't need to be quoted, the
108 remaining arguments are treated like
110 This is normally used to take a printer down and let others know why
112 will indicate the printer is down and print the status message.
114 .It Ic enable No {\ all\ |\ printer\ }
115 Enable spooling on the local queue for the listed printers.
118 to put new jobs in the spool queue.
124 .It Ic restart No {\ all\ |\ printer\ }
125 Attempt to start a new printer daemon.
126 This is useful when some abnormal condition causes the daemon to
127 die unexpectedly, leaving jobs in the queue.
129 will report that there is no daemon present when this condition occurs.
130 If the user is the super-user,
131 try to abort the current daemon first (i.e., kill and restart a stuck daemon).
133 .It Ic start No {\ all\ |\ printer\ }
134 Enable printing and start a spooling daemon for the listed printers.
136 .It Ic status No {\ all\ |\ printer\ }
137 Display the status of daemons and queues on the local machine.
139 .It Ic stop No {\ all\ |\ printer\ }
140 Stop a spooling daemon after the current job completes and disable
143 .It Ic topq No printer\ [\ jobnum\ ...\ ]\ [\ user\ ...\ ]
144 Place the jobs in the order listed at the top of the printer queue.
146 .It Ic up No {\ all\ |\ printer\ }
147 Enable everything and start a new printer daemon.
148 Undoes the effects of
152 .Bl -tag -width /var/spool/output/*/lock -compact
154 printer description file
155 .It Pa /var/spool/output/*
157 .It Pa /var/spool/output/*/lock
158 lock file for queue control
162 .It Sy "?Ambiguous command"
163 abbreviation matches more than one command
164 .It Sy "?Invalid command"
166 .It Sy "?Privileged command"
167 you must be a member of group "operator" or root to execute this command