Printer Control with lpc

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 (), 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 () watches the queue for jobs that people submit with lpr (). 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:

- JP