karvp Posted April 25 Share Posted April 25 Hello, I would like to know if I can schedule a Python task to be executed at certain times. Thanks. Quote Link to comment Share on other sites More sharing options...
wolstech Posted April 25 Share 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. Quote Link to comment Share on other sites More sharing options...
karvp Posted April 26 Author Share 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 Quote Link to comment Share on other sites More sharing options...
karvp Posted April 27 Author Share Posted April 27 Can you help me? I'm new at this Quote Link to comment Share on other sites More sharing options...
wolstech Posted April 27 Share 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 Quote Link to comment Share on other sites More sharing options...
karvp Posted April 27 Author Share Posted April 27 got it, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.