You may not be able to run source if the sh shell is being used. This can be changed by adding the following line in your crontab:
SHELL=/bin/bash * * * * * source "/root/.bashrc"; <command> You can also specify the environment:
BASH_ENV="/root/.bashrc" * * * * * <command> or you can use your local /home/user/.bashrc if it is a user cron job (e.g. crontab -e).
Note that .bash_profile can replace .bashrc, if it exists.