Linux: How to start and stop printer queues
Q. How can I start and stop printer queues for printer called HPLJF2?
A. To stop/start printers and classes queues use enable (to start queue) command. There is also disable command to stop queue.
Linux Printer Control Command names
=> enable or cupsenable: To start the named printers or classes.
=> disable or cupsdisable: To stop the named printers or classes.
Task: Start a print queue
Type the following command to START a print queue for a printer called HPLJF2:
# /usr/bin/enable HPLJF2
Task: Stop a print queue
Type the following command to STOP a print queue for a printer called HPLJF2:
# /usr/bin/disable printer
Please note that use full path name for both commands. Otherwise you will end up running bash internal enable,which is use to enable and disable builtin bash shell commands.
Task: Verify queue is stopped or started
Use lpq command verify the queue is stopped or started:
# lpq
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Linux Move a print job from one queue to another
- MySQL startup script under BSD/Linux
- vi / vim Print Line Numbers on Hardcopies / Printer
- How to: Stop X.Org Server
- Ubuntu Linux: Start / stop / restart OpenSSH / ssh server
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: canon printer, color printer, hp printer, laser printer, laserjet printer, linux clear print queue, linux print queue, linux printer, linux printer queue, printer control, printer queues, printers




April 30th, 2007 at 10:48 pm
I have some print queues that drop, I need a script that will check what queues are up and enable anything that is down, my scripting skills are not good enough to be able to setup and automated script. Does anyone have a script that will automatically restart downed print queues in aix 5.3