Skip to content

Instantly share code, notes, and snippets.

@yugaego
Created December 19, 2014 01:52
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 yugaego/7018f1f8fc4859193f24 to your computer and use it in GitHub Desktop.
Save yugaego/7018f1f8fc4859193f24 to your computer and use it in GitHub Desktop.
Source env vars for a cron job
30 01 * * * cd /home/username; /bin/bash -l -c -x 'source .bash_profile; path/to/command/command.sh' > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment