Commit | Line | Data |
---|---|---|
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 | |
11 | lpc \- line printer control program | |
12 | .SH SYNOPSIS | |
13 | .B /etc/lpc | |
14 | [ command [ argument ... ] ] | |
15 | .SH DESCRIPTION | |
16 | .I Lpc | |
17 | is used by the system administrator to control the | |
18 | operation of the line printer system. | |
19 | For each line printer configured in /etc/printcap, | |
20 | .I lpc | |
21 | may be used to: | |
22 | .IP \(bu | |
23 | disable or enable a printer, | |
24 | .IP \(bu | |
25 | disable or enable a printer's spooling queue, | |
26 | .IP \(bu | |
27 | rearrange the order of jobs in a spooling queue, | |
28 | .IP \(bu | |
29 | find the status of printers, and their associated | |
30 | spooling queues and printer dameons. | |
31 | .PP | |
32 | Without any arguments, | |
33 | .I lpc | |
34 | will prompt for commands from the standard input. | |
35 | If arguments are supplied, | |
36 | .IR lpc | |
37 | interprets the first argument as a command and the remaining | |
38 | arguments as parameters to the command. The standard input | |
39 | may be redirected causing | |
40 | .I lpc | |
41 | to read commands from file. | |
42 | Commands may be abreviated; | |
43 | the following is the list of recognized commands. | |
44 | .TP | |
45 | ? [ command ... ] | |
46 | .TP | |
47 | help [ command ... ] | |
48 | .br | |
49 | Print a short description of each command specified in the argument list, | |
50 | or, if no arguments are given, a list of the recognized commands. | |
51 | .TP | |
52 | abort { all | printer ... } | |
53 | .br | |
54 | Terminate an active spooling daemon on the local host immediately and | |
55 | then disable printing (preventing new daemons from being started by | |
56 | .IR lpr ) | |
57 | for the specified printers. | |
58 | .TP | |
59 | clean { all | printer ... } | |
60 | .br | |
61 | Remove all files beginning with ``cf'', ``tf'', or ``df'' | |
62 | from the specified printer queue(s) on the local machine. | |
63 | .TP | |
64 | enable { all | printer ... } | |
65 | .br | |
66 | Enable spooling on the local queue for the listed printers. | |
67 | This will allow | |
68 | .I lpr | |
69 | to put new jobs in the spool queue. | |
70 | .TP | |
71 | exit | |
72 | .TP | |
73 | quit | |
74 | .br | |
75 | Exit from lpc. | |
76 | .TP | |
77 | disable { all | printer ... } | |
78 | .br | |
79 | Turn the specified printer queues off. This prevents new | |
80 | printer jobs from being entered into the queue by | |
81 | .IR lpr . | |
82 | .TP | |
83 | restart { all | printer ... } | |
84 | .br | |
85 | Attempt to start a new printer daemon. | |
86 | This is useful when some abnormal condition causes the daemon to | |
87 | die unexpectedly leaving jobs in the queue. | |
88 | .I Lpq | |
89 | will report that there is no daemon present when this condition occurs. | |
90 | .TP | |
91 | start { all | printer ... } | |
92 | .br | |
93 | Enable printing and start a spooling daemon for the listed printers. | |
94 | .TP | |
95 | status [ all ] [ printer ... ] | |
96 | Display the status of daemons and queues on the local machine. | |
97 | .TP | |
98 | stop { all | printer ... } | |
99 | .br | |
100 | Stop a spooling daemon after the current job completes and disable | |
101 | printing. | |
102 | .TP | |
103 | topq printer [ jobnum ... ] [ user ... ] | |
104 | .br | |
105 | Place 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" | |
114 | lpd(8), | |
115 | lpr(1), | |
116 | lpq(1), | |
117 | lprm(1), | |
118 | printcap(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 |