Clearing Stopped Mac Print Queues (automatically, using scripts)
After a printer error like a paper jam or a communication problem a Mac print queue may need to be manually started before jobs start printing again. The same can be true if a "bad" job is encountered - the other jobs won't print until it is cleared.
Steve from Gustavus Adolphus College contributed the following scripts to start stopped queues and clear stopped jobs. These scripts are for Mac OS 10.5 (Leopard) Server. Other versions or non-server editions may require different commands or arguments.
/usr/sbin/cupsenable `lpstat -p | grep 'disabled' | awk '{print $2}'`
/usr/bin/cancel -a `lpstat -p | awk '{print $2}'`
keywords: cupsd, cups, pause, paused
Categories: Scripting
