![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl script - adding restart logic | zedex | Shell Programming and Scripting | 4 | 07-08-2008 02:11 PM |
| need help: shell script to restart apache when no. of processes keeps growing | _joshua_ | Shell Programming and Scripting | 14 | 03-07-2007 08:06 AM |
| Restart Script | chapmana | UNIX for Dummies Questions & Answers | 1 | 11-27-2006 11:21 AM |
| suspend/restart a process in shell script | daneensign | Shell Programming and Scripting | 1 | 02-14-2006 12:43 AM |
| How to restart a script from the top | indo1144 | Shell Programming and Scripting | 2 | 07-02-2002 08:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Restart script based on MD5sum
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? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|