osx - How to start/stop printer? -


how pause/unpause print queue using cups api? using cups api can check printer-state using cupsgetoption(). if returns value of 5, know printer stopped or paused. i'd unpause printer in case, there way this?

you use cups' ipptool execute ipp operations:

#!/usr/bin/env ipptool -tv ipp://localhost/printers/your_queue { operation resume-printer group operation-attributes-tag attr charset attributes-charset utf-8 attr language attributes-natural-language en attr uri printer-uri $uri }

you might asked password though.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -