Re: checking for errors

2005-01-13 Thread John W. Krahn
John W. Krahn wrote: Tim Wolak wrote: I have a script that is checking a service to see if its running and that its log file does not contain two error message to confirm that it has not died. However the subrutine is just saying its up when I have put the error message in the last line of the l

Re: checking for errors

2005-01-13 Thread John W. Krahn
Tim Wolak wrote: Hello all, Hello, I have a script that is checking a service to see if its running and that its log file does not contain two error message to confirm that it has not died. However the subrutine is just saying its up when I have put the error message in the last line of the log

Re: checking for errors

2005-01-13 Thread Ing. Branislav Gerzo
Tim Wolak [TW], on Thursday, January 13, 2005 at 09:15 (-0600) wrote about: TW> if ($newlog =~ /^Read failed on socket/ || /^EFIXException::/) { for me it seems, this line is bad, when you rewrite it to: if ($newlog =~ /^(Read failed on socket|EFIXException::)/) { it works ? -- ...

Re: checking for errors

2005-01-13 Thread JupiterHost.Net
Tim Wolak wrote: Hello all, I have a script that is checking a service to see if its running and that its log file does not contain two error message to confirm that it has not died. However the subrutine is just saying its up when I have put the error message in the last line of the log to mak

checking for errors

2005-01-13 Thread Tim Wolak
Hello all, I have a script that is checking a service to see if its running and that its log file does not contain two error message to confirm that it has not died. However the subrutine is just saying its up when I have put the error message in the last line of the log to make sure it sees th