Skip to content

Instantly share code, notes, and snippets.

@jloveland
Created September 10, 2016 02:34
Show Gist options
  • Save jloveland/3d7e212efc044a01a173e73f82f8963a to your computer and use it in GitHub Desktop.
Save jloveland/3d7e212efc044a01a173e73f82f8963a to your computer and use it in GitHub Desktop.

You can create a root cron job that calls this script to execute at a specific time in the evening and then awake in the morning:

sudo crontab -e

Now enter something like to run the suspend script at 23:30:

30 23 * * * /home/myhomefolder/suspend_until.sh 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment