19.8. LPC Requests

LPRng has extended the RFC1179 protocol to allow queue and printer control commands to be sent to the lpd server. The format of these commands are:

    \006printer user key [options]


The following commands are supported.

Table 19-3. LPC Commands

Command Operation
Command Operation
active [printer[@host]] check to see if server accepting connections
abort (printer[@host] | all) terminate server process printing job
disable (printer[@host] | all) disable queueing
debug (printer[@host] | all) debugparms set debug level for printer
enable (printer[@host] | all) enable queueing
hold (printer[@host] | all) (name[@host] | job | all)* hold job
holdall (printer[@host] | all) hold all jobs on
kill (printer[@host] | all) stop and restart server
lpd [printer[@host]] get lpd PID for server
lpq (printer[@host] | all) (name[@host] | job | all)* invoke lpq
lprm (printer[@host] | all) (name[@host]|host|job| all)* invoke lprm
move printer (user|jobid)* target move jobs to new queue
noholdall (printer[@host] | all) hold all jobs off
printcap (printer[@host] | all) report printcap values
quit exit LPC
redirect (printer[@host] | all) (printer@host | off )* redirect jobs
release (printer[@host] | all) (name[@host] | job | all)* release job
reread [printer[@host]] lpd reread database information
start (printer[@host] | all) start printing
status (printer[@host] | all) status of printers
stop (printer[@host] | all) stop printing
topq (printer[@host] | all) (name[@host] | job | all)* reorder job
defaultq default queue for lpd server
local (printer | all) client printcap and configuration information
server (printer | all) server printcap and configuration information

Many of these commands support extremely specialized operations for print queue management, However, the following are the most commonly used and are supported by the BSD lpd print spooling system as well:



The following commands are extensions to the basic set provided by the BSD lpd system.