Can't call Python 3 from cPanel cron jobs

I add this in my cpanel cron jobs


But I get this error

/usr/local/cpanel/bin/jailshell: python3.7: command not found

But I can call python3.7 from the command line just fine. How can I run it in cPanel cron jobs?

1 answer

  • answered 2019-09-21 12:43 Aminah Nuraini

    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.