Pulling from a log file

in Thread of the Month, posted 1/16/07

I am trying to create a task that will open up a log file and look for "yy/mm/dd hh:mm:ss Returned status: General failure".

Mainly what I am wanting it to do is every 15 min run, look for "General failure" then put that whole line in a variable, check to make sure that the "yy/mm/dd hh:mm:ss" of the "General failure" has occured within the past 15 min.

Basically its a task to look for the error, if the error has happened since the last time the task was run, then its going to restart the program thats creating the log file. I am looking for a way to do this in the background because this perticular box has alot of things running on it. So more or less looking to know if this is possible, if so how? the best I have done has pretty much made the log file have to stay focused on at all times...heres what I have done so far.

Click here for the remainder of the thread