Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lpq(1)

lpr(1)

lprm(1)

printcap(5)

lpd(8)

LPC(8)

NAME

lpc − line printer control program

USAGE

/etc/lpc [ command [argument] ]

DESCRIPTION

Lpc controls the operation of the line printer system.  For each line printer configured in /etc/printcap, lpc can: disable or enable the printer, disable or enable the printer’s spooling queue, rearrange the order of jobs in a spooling queue, find the status, and associated spooling queues and printer daemons. 

With no arguments, lpc prompts for commands from the standard input.  If the command argument is supplied, lpc interprets it, as well as any arguments to it.  You can redirect standard input, and make lpc read commands from a file.  You must be logged in as the super-user to run lpc. 

COMMANDS

Commands may be abbreviated; the following is the list of recognized commands. 

? [command(s)]

help [command(s)]
Print a short description of each command specified in the argument list, or, if no command is specified, a list of the recognized commands. 

abort { all | printer(s) }
Terminate an active spooling daemon on the local host immediately; then disable printing (preventing new daemons from being started by lpr) for either all printers or those specified in the argument list.  This commmand only works on the DOMAIN node that is running the line printer server (lpd(8)). 

clean { all | printer(s) }
Remove all files beginning with “cf”, “tf”, or “df” from the specified printer queue(s) on the local machine. 

enable { all | printer(s) }
Enable spooling on the local queue for the specified printers.  This allows lpr to put new jobs in the spool queue. 

exit

quit Exit from lpc. 

disable { all | printer(s) }
Turn the specified printer queues off.  This prevents new jobs from being put into the queue by lpr. 

restart { all | printer(s) }
Attempt to start a new printer daemon.  This is useful when some abnormal condition causes the daemon to stop unexpectedly and leave jobs in the queue.  If that happens, lpq will report that no daemon is present. 

start { all | printer(s) }
Enable printing and start a spooling daemon for the listed printers. 

status [ all ] [ printer(s) ]
Display the status of daemons and queues on the local machine.

stop { all | printer(s) }
Stop a spooling daemon after the current job completes, then disable printing.

topq printer [ jobnums ] [ username(s) ]
Move the jobs, specified by either jobnums (job numbers) or usernames, to the top of the printer queue in the order listed. 

NOTE TO DOMAIN/IX USERS

If lpc and lpd are run on different nodes, the abort function may not work properly.  If a process on the node running lpc has the same process ID as the print daemon on the node running lpd, lpc will attempt to abort the process on its own node, rather than terminate the lpd daemon on the other node. 

DIAGNOSTICS

?Ambiguous command abbreviation matches more than one command

?Invalid command no match was found

?Privileged command command can be executed by root only

FILES

/etc/printcap printer description file

/usr/spool/lpd/* server spool directories

/usr/spool/lpd/* spool directories

/usr/spool/lpd/*/lock lock file for queue control

RELATED INFORMATION

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

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