This is usually due to differences in your personal environment and the cron envrionment.
Whenever I run something from cron I make sure my script explicitly sets up the environment the way I need it to be. I never trust that cron's environment is set up the way I need.
You're also missing an exclamation mark in your first line.
#!/bin/bash ensures bash is used instead of whatever cron's system default is - so your script works even if cron is reconfigured.
I would make sure PATH is explicitly set and exported.
Message was edited by: Brian Bontrager
It will work that way, to work properly with cron please follow what Brain Said