Skip to content

Instantly share code, notes, and snippets.

@reikoNeko
Created April 11, 2018 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reikoNeko/32207723d3ce631158cefe1c9211fe90 to your computer and use it in GitHub Desktop.
Save reikoNeko/32207723d3ce631158cefe1c9211fe90 to your computer and use it in GitHub Desktop.
sleep $((`date -d 2115 +%s` - `date +%s`)) && echo 'dowatchalike'
@reikoNeko
Copy link
Author

reikoNeko commented Apr 11, 2018

If atd is not installed on a machine, you can still use date and a little math to schedule a task for a particular time by using the difference in epoch seconds. (If a long time, hopefully you can use screen.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment