Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Created May 5, 2011 20:23
Show Gist options
  • Save atomic-penguin/957846 to your computer and use it in GitHub Desktop.
Save atomic-penguin/957846 to your computer and use it in GitHub Desktop.
crontab_environment.sh
# crontab environment howto
# field allowed values
# ----- --------------
# minute 0-59
# hour 0-23
# day of month 1-31
# month 1-12 (or names, see below)
# day of week 0-7 (0 or 7 is Sun, or use names)
0 12 * * * [ -x $HOME/.bash_profile ] && . $HOME/.bash_profile && foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment