2

using linux. I know you can do an @reboot cronjob. I want to do an equivalent thing but instead of running at reboot, running after my computer awakens from suspend. Is that possible?

  • What is the OS? Mac OS X has hooks for this (or otherwise fires shield window notifications); other OS may or may not have such a hook. – thrig Oct 10 '15 at 15:05
  • linux. added that to original question for clarification – erp Oct 11 '15 at 6:23
2

Depends on your distro and/or your destop enviroment, without this info i cant tel much, only that each dispo/desktop enviroment handle it on other ways.

like you see the way for ubuntu is nearly complete different how debian handle this.

Ubuntu solution https://askubuntu.com/questions/226278/run-script-on-wakeup

Debian solution http://forums.debian.net/viewtopic.php?f=5&t=53442

depending on which distro or desktop enviroment you use i recommand to have the first look in your runlevels.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.