Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Linux / Unix lpc command

Quick links

About lpc
Syntax
Examples
Related commands
Linux / Unix main page

About lpc

Line printer control program.

Syntax

lpc [ command [ parameter] ]

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.
clean {all | printer} Remove any temporary files, data files, and control files that cannot be printed (i.e., do not form a complete printer job) from the specified printer queue(s) on the local machine.
enable {all | printer} Enable spooling on the local queue for the listed printers. This will allow lpr(1) to put new jobs in the spool queue.
exit 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.
down {all | printer} Turn the specified printer queue off, disable printing and put message in the printer status file. The message doesn't need to be quoted, the remaining arguments are treated like echo. This is normally used to take a printer down and let others know why lpq will indicate the printer is down and print the status message).
help Print a short description of each command specified in the argument list, or, if no arguments are given, a list of the recognized commands.
quit Exit from lpc.
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 will report that there is no daemon pre- sent when this condition occurs. If the user is the super-user, try to abort the current daemon first (i.e., kill and restart a stuck daemon).
start {all | printer} Enable printing and start a spooling daemon for the listed printers.
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.
topq printer [jobnum] [user] Place the jobs in the order listed at the top of the printer queue.
up Enable everything and start a new printer daemon. Undoes the effects of down.
? Print a short description of each command specified in the argument list, or, if no arguments are given, a list of the recognized commands.

Examples

topq 121 hope - Move the job 121 for user hope to the top of the printer queue.

Related commands

lpr
lpg
lprm

Index

Category:
Linux / Unix

Companies:
Click here

Related Pages:

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope