Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

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

1 Answer 1

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 ( to wake-up your machine.

Here is a ubuntu-guide:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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