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
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop


![Linux Disable Bluetooth [ Bluetooth Input Devices (hidd) ]](http://s0.cyberciti.org/images/rp/1/10.jpg)




![Bash Shell Scripting Disable Control-C [ CTRL+C ] Keys](http://s0.cyberciti.org/images/rp/1/21.jpg)




{ 7 comments… read them below or add one }
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
I’ve written scripts that will do this for AIX; they also will send e-mail or open a help-desk ticket for stalled queues or queues that can’t be restarted automatically. Let me know if you still need something like this (I know it’s been a long time since you posted).
i want setting a print server in linux details.
That would be simple. $1000 bucks and it’s yours.
Hi,
When we restart the print queue, were the jobs still available in the queue.
This needs to be update the enable command doesn’t work for printing in RHEL 4 or RHEL 5 ???
your website is not useful