karvp Posted April 25 Posted April 25 Hello, I would like to know if I can schedule a Python task to be executed at certain times. Thanks.
wolstech Posted April 25 Posted April 25 You should be able to do this by using the scheduled tasks option in plesk and having it call your .py file.
karvp Posted April 26 Author Posted April 26 (edited) I got this when trying to run a simple hello world: Btw, if I add the shebang: Edited April 26 by karvp
wolstech Posted April 27 Posted April 27 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. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now