Here is my cron job:
plee@dragon:~$ crontab -l * * * * * /bin/bash -l -c \'source ~/.bashrc; echo $EDITOR > /tmp/cronjob.test\'
and insi
I just tried a file .env_setup_rc file with only one line export EDITOR=vim, surprisingly it's working.
.env_setup_rc
export EDITOR=vim
So I guess there is something in .bashrc conflicting with the cron job bash command.
.bashrc