Installation guide

Table 10–3: lpc Command Arguments
lpc Argument Description
help [
argument
]
Prints a one-line description of the specified lpc
command argument. If an
argument
variable is not
specified, the list of arguments is displayed.
? [
argument
]
Same as the help argument.
abort
Terminates an active lpd daemon and then disables
printing. This prevents the lpr or lp command from
starting a new lpd daemon.
clean
Removes any temporary files, data files, and control
files that cannot be printed (for example, files that do
not form a complete printer job) from the specified print
spooling directory.
disable
Turns off the specified print spooling queue. This
prevents the lpr or lp command from entering new
jobs in the queue.
down
message...
Turns off the specified print queue, disables printing,
and enters the specified message in the printer status
file. The message does not need to be quoted because
remaining arguments are treated the same as echo.
You can use the down argument to take down a printer
and inform users. If a printer is down, the lpq
command indicates that the printer is down.
enable
Enables spooling for the specified printers. This enables
the lpr or the lp command to enter print jobs in the
spooling queue.
exit
Exits from lpc.
quit
Exits from lpc.
restart
Attempts to start a new lpd daemon for the specified
printer. This argument is useful if some abnormal
condition causes the daemon to terminate unexpectedly
and leave jobs in the queue. If this occurs, the lpq
command indicates that no daemon is present. If a
daemon is hung, you must first kill the process and then
restart the daemon by using the restart argument.
start
Enables printing and starts a spooling daemon for the
specified printer.
status [
printer
] Displays the status of the specified printer daemon and
queue. The status argument shows if the queue is
enabled, if printing is enabled, the number of entries in
the queue, and the status of the printer’s lpd daemon.
If a printer name is not supplied, information about all
printer daemons and queues is displayed.
10–18 Administering the Print Services