I need to write a python script that constantly checks a remote web service for updates. The faster it loops the better.
How do I get a script to run on my server over and over again without me having to manually start it each time? And if the server crashes or something, how does this script automatically start up again?
thanks
If you really want to run it as fast as possible, there is an alternative to using cron which is write the python program as an endless loop and then start it as a background process using nohup python script.py &. The output of the python process will then be written in nohup.out.
constantly running a script on my server