Cron job does NOT get the environment variables set in .bashrc
The reason for source ~/.bashrc not working is the contents on your ~/.bashrc (default one from Ubuntu 12.04). If you look in it you will see on lines 5 and 6 the following: # If not running interactively, don’t do anything [ -z “$PS1” ] && return PS1 variable is set for an interactive shell, … Read more