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
Rather than making your script loop many times, just write it to perform this task a single time. Then run the script multiple times, as often as you wish, as a cronjob. Edit your cron table to specify timings using the command
crontab -e. You needn’t worry about server restarts becausecronwill be started as a service automatically.