The lpc(8) command, for lpr-style printing setups, is mostly for the superuser. (You may find it in a system directory, like /usr/sbin/lpc.) Everyone can use a few of its commands; this article covers those.
You can type lpc commands at the lpc> prompt; when you're done, type exit (or CTRL-d):
% 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:
% lpc status imagen imagen: queuing is enabled printing is enabled no entries no daemon present %
The printer daemon (Section 1.10) watches the queue for jobs that people submit with lpr (Section 45.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:
-- JP
Copyright © 2003 O'Reilly & Associates. All rights reserved.