I am using this script to check I can run it in python2.7.
The script I want to run can not run on python < 2.7
The Crontab line is
It runs if
Can anybody hel me, please?
The short answer is: specify the full path to python2.7 in your script, as in
The issue here is that crond will run a script a minimal environment set, thus /usr/local/bin is not in the PATH, hence the python2.7 binary is not found (or any other python version besides 2 and 2.6). You get a minimal environment when running scripts from crond:
If you are relying on environmental variables, then you might need to set them explicitly in your script.