Ok, I run a small script, that restarts a
perl script when it fails (it's a very unreliable
perl script, but I can't change it, it's crucial, and I don't know
perl)
It outputs data into a logfile. Unfortunately, it also regularly hangs. This is a major problem because if it hangs, no data is written to the logfile (which is parsed by a python script). So, what I want to do, is to MD5sum the logfile every 30 seconds, and if the md5sum is the same as the md5sum the half minute before, to restart the script. How might I do this?