in reply to Win32 script dies under high load
Note: this will create a permanent loop, removing the need for the first suggestion!use File::Tail; $file=File::Tail->new(name=>$name, maxinterval=>10); while (defined($line=$file->read)) { if ($line =~ m/accept Rejected. Max connection reached/i) { print "found max connections\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Win32 script dies under high load
by mpapet (Novice) on Jul 24, 2007 at 21:37 UTC | |
by BrowserUk (Patriarch) on Jul 24, 2007 at 22:13 UTC |