Struggling to get crontab to execute a shell script on my Raspberry Pi. The script runs fine if executed with bash (it's executing a python script that runs in a virtual environment).
Here's what I've tried
crontab -e
* * * * * /home/pi/bash/myshell.sh
And the shell script...
#! /bin/bash
cd /home/pi/projects/scripts
source activate myEnv
python pyscript.py
source deactivate
This works fine...
bash /home/pi/bash/myshell.sh
I also tried editing the root cron tab file directly with sudo nano /etc/crontab
but this also didn't work. What am I missing here?