Skip to content

Instantly share code, notes, and snippets.

@elchead
Last active April 28, 2022 09:07
Show Gist options
  • Save elchead/501f4a4d4ce122c62b30aee8ad60dc86 to your computer and use it in GitHub Desktop.
Save elchead/501f4a4d4ce122c62b30aee8ad60dc86 to your computer and use it in GitHub Desktop.
Schedule later execution mac
echo "./script.sh" | at now + "5 minutes"
# Execute commands from a given file next Tuesday:
at -f path/to/file 9:30 PM Tue
# Check queue
atq
# Remove job from queue
at -r ${JOB_ID}
# Cat the jobs listed on the command line to standard output
at -c ${JOB_ID}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment