Have CUPS run wake-on-lan script before printing to shared printer

Dean Hill deanhill1971 at gmail.com
Fri Feb 25 10:47:27 PST 2011


I have a MacBook (using CUPS) that prints to a shared Windows 7 printer. Sometimes the Windows machine is asleep, and the Mac will just queue up its print requests. I recently created a script to send a wake-on-lan packet to a Windows 7 machine. This wakes up the Windows machine and printing starts. Great, but I think the system can be automated some.

Is it possible to have CUPS run the wake-on-lan script everytime something is printed?

Thanks.




More information about the cups mailing list