Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
LPC(8) BSD System Manager’s Manual LPC(8)
NAME
lpc ? line printer control program |
SYNOPSIS
lpc [ |
command [argument ...]]
DESCRIPTION |
Lpc is used by the system administrator to control the operation of the line printer system. For each line printer configured in /etc/printcap, lpc may be used to: |
• 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 dameons. Without any arguments, lpc will prompt for commands from the standard input. If arguments are supplied, lpc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causing lpc to read commands from file. Commands may be abreviated; the following is the list of recognized commands. ? [command ...] abort { all | printer } clean { all | printer } disable { all | printer } down { all | printer } message ... enable { all | printer } exit’ restart { all | printer } start { all | printer } status { all | printer } stop { all | printer } topq printer [ jobnum ... ] [ user ... ] up { all | printer } FILES |
/etc/printcap’ printer description file
/var/spool/*’ spool directories SEE ALSO |
lpd(8), lpr(1), lpq(1), lprm(1), printcap(5) |
DIAGNOSTICS
?Ambiguous command
abreviation matches more than one command ?Invalid command ?Privileged command HISTORY |
The lpc command appeared in 4.2BSD. 4.2 Berkeley Distribution March 16, 1991 4.2 Berkeley Distribution |