I'm trying to execute a simple python script, but it appears I need to activate a virtual env first to make sure it's able to import all its modules. I created a shell script called runAll.sh that does the following:
**
source /path/.virtualenvs/path/bin/virtualenvwrapper.sh
workon (name of virtualenv)
python runBots.py
**
When I run this in a bash shell using:
bash runAll.sh
it works just fine. However when I try to create a scheduled task using the following
/path/path/runAll.sh
I'm getting the error 'permission denied'
I tried killing any running bash consoles but that didn't help. Am I approaching this problem the right way? What am I missing?