Last active
April 28, 2022 09:07
-
-
Save elchead/501f4a4d4ce122c62b30aee8ad60dc86 to your computer and use it in GitHub Desktop.
Schedule later execution mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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