lpc(8)lpc(8)Namelpc - line printer control program
Syntax
/etc/lpc [ command [ argument... ] ]
Description
The program is used by the system administrator to control the opera‐
tion of the line printer system. For each line printer with an entry
in the file, may be used to start/stop several different functions.
Without any arguments, prompts for commands from the standard input.
If arguments are supplied, interprets the first argument as a command
and the remaining arguments as parameters to the command. The standard
input may be redirected causing to read commands from file. The com‐
mands and their parameters are shown below. Commands may be abbrevi‐
ated.
? [ command... ]
help [ command... ]
Prints a short description of each command specified in the
argument list, or, if no arguments are given, a list of the rec‐
ognized commands.
abort [ all ] [ printer... ]
Terminates an active spooling daemon on the local host immedi‐
ately and then disables printing (preventing new daemons from
being started by for the specified printers.
clean [ all ] [ printer... ]
Removes all files beginning with ``cf'', ``tf'', or ``df'' from
the specified printer queue(s) on the local machine.
enable [ all ] [ printer... ]
Enables spooling on the local queue for the listed printers.
This will allow to put new jobs in the spool queue.
exit
quit
Exits from
disablefR [ all ] [ printer... ]
Turns off the specified printer queues. This prevents new
printer jobs from being entered into the queue by
restart [ all ] [ printer... ]
Attempts to start a new printer daemon. This is useful when
some abnormal condition causes the daemon to die unexpectedly
leaving jobs in the queue. The command will report that there
is no daemon present when this condition occurs.
start [ all ] [ printer... ]
Enables printing and starts a spooling daemon for the listed
printers. This command also creates an file in the printer's
spool directory. The file can be used by filters as an initial‐
ization flag.
status [ all ] [ printer... ]
Displays the status of daemons and queues on the local machine.
stop [ all ] [ printer... ]
Stops a spooling daemon after the current job completes and dis‐
ables printing.
topq printer [ jobnum... ] [ user... ]
Places the jobs in the order listed at the top of the printer
queue.
Diagnostics
?Ambiguous command
Abbreviation matches more than on command.
?Invalid command
No match was found.
?Privileged command
The command can only be executed by root.
Files
Printer description file
Spool directories
Lock file for queue control
See Alsolpq(1), lpr(1), lprm(1), printcap(5), lpd(8)lpc(8)