Reasons why crontab does not work
I'm migrating some scripts from an older machine to a lucid ec2 machine.
I'm sourcing a file in our
~/.bashrc and setting some environment variables, but those variables don't seem to be accessible from any cron.
Even though my cron has a
. /home/username/.bashrc && /path/to/script the script doesn't seem to know of any of the environment variables which is in another file and sourced in
All of these scripts work successfully when I run them from the command line. While trying to run it from a crontab, however, they fail.