Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

#!/bin/bash
pm-suspend
sleep 10m
{unsuspend command}
share|improve this question
5  
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
1  
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 (http://en.wikipedia.org/wiki/Wake-on-LAN) to wake-up your machine.

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

share|improve this answer

Your Answer

 
discard

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.