How I can unsuspend my computer with a bash script like:

sleep 10m
{unsuspend command}
  • 5
    The script would need to interface to a USB-controlled robotic arm that presses the power button on your laptop.
    – ish
    Jun 24 '12 at 10:30
  • 1
    Only thing I could think of is wake on lan
    – Cubiq
    Jun 24 '12 at 11:01

After your computer have been suspended, nothing more will get executed, so your bash-script will not continue running until it you have woken it up.

You need to put your script on another machine (on the same local network), as Cubiq said, and use wake on lan (http://en.wikipedia.org/wiki/Wake-on-LAN) to wake-up your machine.

Here is a ubuntu-guide: https://help.ubuntu.com/community/WakeOnLan

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.