The Berkeley lpc(8) command is mostly for the superuser. Everyone can use a few of its commands; this article covers those.
You probably don't have the /etc or /usr/etc directory in your
search path (8.7),
so you'll need to start lpc with its absolute pathname.
You can type lpc commands at the lpc>
prompt - then, when
you're done, type exit (or CTRL-d).
%/etc/lpc
lpc>help status
status show status of daemon and queue lpc> ... lpc>exit
%
Or you can type a single lpc command from the shell prompt:
%/etc/lpc status imagen
imagen: queuing is enabled printing is enabled no entries no daemon present %
The printer daemon (1.14) watches the queue for jobs that people submit with lpr (43.2). If queueing is disabled (usually by the system administrator), lpr won't accept new jobs.
lpc controls only printers on your local host. lpc won't control printers connected to other hosts, though you can check the queue of jobs (if any) waiting on your local computer for the remote printer.
The commands anyone can use are:
This tries to start a new printer daemon. Do this if something makes the daemon die while there are still jobs in the queue (lpq or lpc status will tell you this). It's worth trying when the system administrator is gone and the printer doesn't seem to be working. The printer name can be all to restart all printers. The printer name doesn't need an extra P. For example, to specify the foobar printer to lpr, you'd type lpr -Pfoobar. With lpc, use a command like restart foobar.
Shows the status of daemons and queues on the local computer (see the preceding example). The printer name can be all to show all printers.
By default, gives a list of lpc commands, including ones for the superuser only. Give it a command name and it explains that command.
Quits from lpc.
-