Issue:
I have written one script which is running fine when i ran it manually but same script when i have scheduled in crontab not working.
Solution:
Source .bash_profile in your script. It should work.
Especially when you use EOF , you must source .bash_profile in the script
. ~/.bash_profile