Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpd(8)

lpr(1)

lpq(1)

lprm(1)

printcap(5)

LPC(8)  —  MAINTENANCE COMMANDS

NAME

lpc − line printer control program

SYNOPSIS

/usr/etc/lpc [ command [ command-parameter ...  ] ]

DESCRIPTION

Lpc is the Line Printer Control program and is used by the system administrator to control the operation of the line printer system.  For each line printer configured in /etc/printcap (the line printer description database), 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 daemons. 

Without any arguments, lpc works interactively and prompts 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 so that lpc reads commands from a file.  Commands may be abreviated; the following is the list of recognized commands.  Note that the printer parameter in the commands is specified just by the name of the printer (printronix for example), not by −Pprintronix as you would specify it to the lpr or lpq commands. 

Commands

? [command ... ]

help [command ... ]
Display a short description of each command specified in the argument list, or, if no arguments are given, a list of the recognized commands.

abort [all| printer ... ]
Terminate an active spooling daemon on the local host immediately and then disable printing (preventing new daemons from being started by lpr) for the specified printers.  The abort command can only be used by the super-user. 

clean [all| printer ... ]
Remove all files beginning with ‘cf’, ‘tf’, or ‘df’ from the specified printer queue(s) on the local machine.  The clean command can only be used by the super-user. 

enable [all| printer ... ]
Enable spooling on the local queue for the listed printers, so that lpr can put new jobs in the spool queue.  The enable command can only be used by the super-user. 

exit

quit Exit from lpc.

disable [all| printer ... ]
Turn the specified printer queues off.  This prevents new printer jobs from being entered into the queue by lpr. The disable command can only be used by the super-user. 

restart [all| printer ... ]
Attempt to start a new printer daemon. This is useful when some abnormal condition causes the daemon to die unexpectedly leaving jobs in the queue. Lpq reports that there is no daemon present when this condition occurs. 

start [all| printer ... ]
Enable printing and start a spooling daemon for the listed printers.  The start command can only be used by the super-user. 

status [all| printer ... ]
Display the status of daemons and queues on the local machine.

stop [all| printer ... ]
Stop a spooling daemon after the current job completes and disable printing. The stop command can only be used by the super-user. 

topq printer [jobnum ... ] [user... ]
Move the print job(s) specified by jobnum or those job(s) belonging to user to the top (head) of the printer queue.  The topq command can only be used by the super-user. 

FILES

/etc/printcap printer description file

/usr/spool/∗ spool directories

/usr/spool/∗/lock lock file for queue control

SEE ALSO

lpd(8), lpr(1), lpq(1), lprm(1), printcap(5)

DIAGNOSTICS

?Ambiguous commandabreviation matches more than one command
?Invalid commandno match was found
?Privileged commandcommand can be executed by super-user only

Sun Release 3.2  —  Last change: 1 February 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026