lpc(8) CLIX lpc(8)
NAME
lpc - Runs the line printer control program
SYNOPSIS
/etc/lpc [command [argument ... ]]
DESCRIPTION
The lpc command is used by the system administrator to control the
operation of the line printer system. For each line printer configured in
/etc/printcap, the lpc command may be used to perform the following tasks:
⊕ Disable or enable a printer.
⊕ Disable or enable a printer's spooling queue.
⊕ Rearrange the order of jobs in a spooling queue.
⊕ Find the status of printers, and their associated spooling queues and
printer daemons.
Without any arguments, the lpc command prompts for commands from stdin.
If arguments are supplied, the lpc command interprets the first argument
as a command and the remaining arguments as parameters to the command.
The stdin may be redirected, causing lpc to read commands from a file.
Commands may be abbreviated.
The following is a list of recognized commands:
? [command ... ]
help [command ... ]
Prints a short description of each command specified in the
argument list, or, if no arguments are given, prints a list of the
recognized commands.
abort {all|printer ... }
Immediately terminates an active spooling daemon on the local host,
and then disables printing (preventing new daemons from being
started by lpr) for the specified printers.
clean {all|printer ... }
Removes any temporary files, data files, and control files that
cannot be printed (that is, do not form a complete printer job)
from the specified printer queue(s) on the local machine.
disable {all|printer ... }
Turns the specified printer queues off. This prevents new printer
jobs from being entered into the queue by lpr.
2/94 - Intergraph Corporation 1
lpc(8) CLIX lpc(8)
down {all|printer} message ...
Turns the specified printer queue off, disables printing, and puts
a message in the printer status file. The message does not need to
be quoted, since the remaining arguments are treated like the echo
command This is normally used to take a printer down and let others
know why. The lpq command indicates that the printer is down and
prints the status message.)
enable {all|printer ... }
Enables spooling on the local queue for the listed printers. This
allows the lpr command to put new jobs in the spool queue.
exit
quit Exits from lpc.
restart {all|printer ... }
Attempts to start a new printer daemon. This is useful when an
abnormal condition causes the daemon to die unexpectedly, leaving
jobs in the queue. The lpq command reports that there is no daemon
present when this condition occurs. If the user is a superuser,
the program will try to abort the current daemon first (that is,
kill and restart a stuck daemon).
start {all|printer ... }
Enables printing and starts a spooling daemon for the listed
printers.
status Displays the status of daemons and queues on the local machine.
stop {all|printer ... }
Stops a spooling daemon after the current job completes and
disables printing.
topq printer [jobnum ... ] [user ... ]
Places the jobs in the order listed at the top of the printer
queue.
up {all|printer ... }
Enables everything and starts a new printer daemon. Undoes the
effects of down.
FILES
/etc/printcap
Printer description file.
/usr/spool/*
Spools directories.
/usr/spool/*/lock
Locks a file for queue control.
2 Intergraph Corporation - 2/94
lpc(8) CLIX lpc(8)
DIAGNOSTICS
The lpc command returns the following diagnostic messages:
?Ambiguous command
The given abbreviation matches more than one command.
?Invalid command
No match was found.
?Privileged command
The requested command can be executed only by root.
RETURN VALUES
The lpc command exits with a value of 1 whenever an error occurs.
RELATED INFORMATION
Commands: lpd(8), lpr(1), lpq(1), lprm(1)
Files: printcap(4)
Intergraph System and Network Administrator's Guide
2/94 - Intergraph Corporation 3