manual page first distributed with 4.2BSD
[unix-history] / usr / src / usr.sbin / lpr / lpc / lpc.8
CommitLineData
89b3926c
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)lpc.8 5.1 (Berkeley) %G%
6.\"
7.TH LPC 8 "4 July 1983"
8.UC 5
9.ad
10.SH NAME
11lpc \- line printer control program
12.SH SYNOPSIS
13.B /etc/lpc
14[ command [ argument ... ] ]
15.SH DESCRIPTION
16.I Lpc
17is used by the system administrator to control the
18operation of the line printer system.
19For each line printer configured in /etc/printcap,
20.I lpc
21may be used to:
22.IP \(bu
23disable or enable a printer,
24.IP \(bu
25disable or enable a printer's spooling queue,
26.IP \(bu
27rearrange the order of jobs in a spooling queue,
28.IP \(bu
29find the status of printers, and their associated
30spooling queues and printer dameons.
31.PP
32Without any arguments,
33.I lpc
34will prompt for commands from the standard input.
35If arguments are supplied,
36.IR lpc
37interprets the first argument as a command and the remaining
38arguments as parameters to the command. The standard input
39may be redirected causing
40.I lpc
41to read commands from file.
42Commands may be abreviated;
43the following is the list of recognized commands.
44.TP
45? [ command ... ]
46.TP
47help [ command ... ]
48.br
49Print a short description of each command specified in the argument list,
50or, if no arguments are given, a list of the recognized commands.
51.TP
52abort { all | printer ... }
53.br
54Terminate an active spooling daemon on the local host immediately and
55then disable printing (preventing new daemons from being started by
56.IR lpr )
57for the specified printers.
58.TP
59clean { all | printer ... }
60.br
61Remove all files beginning with ``cf'', ``tf'', or ``df''
62from the specified printer queue(s) on the local machine.
63.TP
64enable { all | printer ... }
65.br
66Enable spooling on the local queue for the listed printers.
67This will allow
68.I lpr
69to put new jobs in the spool queue.
70.TP
71exit
72.TP
73quit
74.br
75Exit from lpc.
76.TP
77disable { all | printer ... }
78.br
79Turn the specified printer queues off. This prevents new
80printer jobs from being entered into the queue by
81.IR lpr .
82.TP
83restart { all | printer ... }
84.br
85Attempt to start a new printer daemon.
86This is useful when some abnormal condition causes the daemon to
87die unexpectedly leaving jobs in the queue.
88.I Lpq
89will report that there is no daemon present when this condition occurs.
90.TP
91start { all | printer ... }
92.br
93Enable printing and start a spooling daemon for the listed printers.
94.TP
95status [ all ] [ printer ... ]
96Display the status of daemons and queues on the local machine.
97.TP
98stop { all | printer ... }
99.br
100Stop a spooling daemon after the current job completes and disable
101printing.
102.TP
103topq printer [ jobnum ... ] [ user ... ]
104.br
105Place the jobs in the order listed at the top of the printer queue.
106.SH FILES
107.nf
108.ta \w'/etc/printcap 'u
109/etc/printcap printer description file
110/usr/spool/* spool directories
111/usr/spool/*/lock lock file for queue control
112.fi
113.SH "SEE ALSO"
114lpd(8),
115lpr(1),
116lpq(1),
117lprm(1),
118printcap(5)
119.SH DIAGNOSTICS
120.nf
121.ta \w'?Ambiguous command 'u
122?Ambiguous command abreviation matches more than one command
123?Invalid command no match was found
124?Privileged command command can be executed by root only
125.fi