Occasionally the server has a high load and the script fails. I put sleep 2 in to help, which seems like it helps, but I still get a failures. I've tried intentionally killing tail.exe after use but it doesn't help. The code below runs in the eternal loop. The subroutine backticks_die just sends me an email.
@servergrep = `c:\\unixtools\\usr\\local\\wbin\\tail.exe -n 10 $line` or die backticks_die(); sleep 2; our $message = grep ( /accept Rejected. Max connection reached/i, @servergrep); if ($message) { print "found max connections /n "; }; #clear out @servergrep @servergrep=();
In reply to Win32 script dies under high load by mpapet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |