Jump to content

Recommended Posts

Posted

You should be able to do this by using the scheduled tasks option in plesk and having it call your .py file.

Posted (edited)

I got this when trying to run a simple hello world:

image.png.8d36b2a26d19aab80c1df37ff5790187.png

 

Btw, if I add the shebang:
image.png.364b1cdf4ab45638e559e3d83ee06524.png

Edited by karvp
Posted

You can only call files in your home directory due to a chroot, so you can't actually access the Python binary. The easiest way to make this work is to put together a script in the cgi-bin folder that works when accessed in your browser, and then schedule it to be called using the fetch web URL feature.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...