Turning printer power on and off?

Helge Blischke h.blischke at acm.org
Sat Dec 31 10:23:27 PST 2011


Hadmut Danisch wrote:

> Hi,
> 
> is there a way to have cups turn the printer's power on once there is a
> print job and off again after the queue is empty?
> 
> The best thing would be to have some configurable hooks that run
> external executables/shell scripts.
> 
> 
> (I'd like to use a remote controlled power line to switch the printer on
> if needed.)
> 
> regards
> Hadmut

You may set up a notifier as a shell-/Perl-/Python script and set up a 
subscriptions.conf file to specify what events for the respective printer 
should be received by your notifier.
To read the notifications, your script can call the testnotify utility.

Helge





More information about the cups mailing list