Skip to content

Instantly share code, notes, and snippets.

@bjdixon
Created February 8, 2017 02:54
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 bjdixon/3900dd4fcd7146ccd560d059817324a7 to your computer and use it in GitHub Desktop.
Save bjdixon/3900dd4fcd7146ccd560d059817324a7 to your computer and use it in GitHub Desktop.
crontab examples with path. Edit with crontab -e, list with crontab -l
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
*/5 * * * * /path/to/job/to/run/every/five/minutes
0 9 * * * /path/to/job/to/run/every/day/at/9am
0 9 * * * . /source/doesnt/work/so/use/dot/script.sh
0 9 * * * /path/script.sh >> /var/log/output_and_errors.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment