Clearing Stopped Mac Print Queues (automatically, using scripts)
KB Home | 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.
Gustavus Adolphus College contributed the following scripts to start stopped queues and clear stopped jobs. These scripts have been updated for Mac OS 10.8 (Mountain Lion). Other versions may require different commands or arguments.
/usr/sbin/cupsenable `lpstat -p | sed -nEe '/disabled/s/^[^ ^I]+[ ^I]([^ ^I]+)[ ^I]+.*$/\1/p'`
[ ^I] is the character class for a space and a tab character.
/usr/bin/cancel -a
keywords: cupsd, cups, pause, paused
Categories: Scripting
Comments
Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.
Article last modified on February 18, 2013, at 07:24 PM
Printable View | Article History | Edit Article