Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
/usr/ucb/lpc [command [parameter...]]
Use lpc to perform the following functions:
start or stop a printer,
disable or enable a printer's spooling queue,
rearrange the order of jobs in a print queue, or
display the status of a printer print queue and printer daemon.
lpc can be run from the command line or interactively. Specifying lpc with the optional command andparameter arguments causes lpc to interpret the first argument as an lpc command, and all other arguments as parameters to that command. Specifying lpc without arguments causes it to run interactively, prompting the user for lpc commands with lpc>. By redirecting the standard input, lpc can read commands from a file.
All users can execute the following lpc commands: ? [command \|.\|.\|.] | help [command \|.\|.\|.]
Displays a short description of command. command is an lpc command. If command is not specified, displays a list of lpc commands.
Exits from lpc.
Displays the status of print daemons and print queues. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Only a super-user can execute the following lpc commands: abort [all | printer\|.\|.\|.]
Terminates an active spooling daemon. Disables printing (by preventing new daemons from being started by lpr(1B)) for printer. all specifies this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Removes files created in the print spool directory by the print daemon from printer 's print queue. all specifies that this command is performed on all locally attached printers.printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Turns off the print queue for printer. Prevents new printer jobs from being entered into the print queue for printer by lpr(1B). all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Turns the queue for printer off and disables printing on printer. Inserts message in the printer status file. message does not need to be quoted; multiple arguments to message are treated as arguments are to echo(1). Use down to take a printer down and inform users. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Enables lpr(1B) to add new jobs in the spool queue. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Attempts to start a new printer daemon. restart is useful when a print daemon dies unexpectedly and leaves jobs in the print queue. all specifies that this command is performed on all locally attached printers. printer indicates that this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Enables printing. Starts a spooling daemon for the printer. all specifies that this command is performed on all locally attached printers. printer indicates the command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Stops a spooling daemon after the current job is complete. Disables printing at that time. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Moves request-ID or print jobs belonging to user on printer to the beginning of the print queue. Specify user as a user's login name. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Turns the queue for printer on and enables printing on printer. Deletes the message in the printer status file (inserted by down). Use up to undo the effects of down. all specifies that this command is performed on all locally attached printers. printer indicates this command is performed on specific printers. Specify printer as an atomic name. See printers.conf(5) for information regarding naming conventions for atomic names.
Successful completion.
An error occurred.
System printer configuration database
User-configurable printer database
NIS version of /etc/printers.conf
LDAP version of /etc/printers.conf
ATTRIBUTE TYPE ATTRIBUTE VALUE |
Interface Stability Standard |