I have been trying to run a python script on my MAC every day automatically with no success so far. I failed using launched
, and I am now trying to use crontab
to see if I am luckier that way.
The script runs OK without using crontab
:
cd '/Users/johnEd/Documents/code/myFolder' && '/usr/local/bin/python3' 'myfile.py'
I have been able to install a new crontab
20 10 * * * cd '/Users/johnEd/Documents/code/myFolder' && '/usr/local/bin/python3' 'myfile.py'
The crontab lists when I do crontab -l
but it does not seem to run at all