Skip to content

Instantly share code, notes, and snippets.

@baijian
Created January 29, 2013 09:40
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 baijian/4663055 to your computer and use it in GitHub Desktop.
Save baijian/4663055 to your computer and use it in GitHub Desktop.
>> crontab -e
* * * * * env > ~/env.tmp
bash shell
>>env > ~/env.tmp2
compare two file: evn.tmp and env.tmp2, you will know why your job can run through shell but can't run through cron.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment