Reputation: 19156
I add this in my cpanel cron jobs
python3.7 myscript.py
But I get this error
/usr/local/cpanel/bin/jailshell: python3.7: command not found
But I can call python3.7 myscript.py
from the command line just fine. How can I run it in cPanel cron jobs?
Upvotes: 2
Views: 1188
Reputation: 19156
Solved. I use the full path. It seems it is caused by me using a different user than root since I use cPanel. Weird it didn't happen when I use just python
when I used Python 2.
/usr/local/bin/python3.7 myscript.py
Upvotes: 2