File text help please
Posted: Wed Apr 20, 2005 7:46 am
Hi. PLease bear with my stupidity.
I am not a big scripter and even with the interface, very new to me and sort of lost. Once I get some direction and do things a few times I will start tp pick it up.
Here is what I need to do if anyone can help.
Basically, I have a log file being created in txt format. Appends each day, adds the date and results of somthing.
I need to look at the file, and if it sees a particular portion of text (preferrably looking at todays date first and searching anything after that instance), it then needs to either send an email, page, or some sort of alert.
Last part I may play with as I eventually will try and create an snmp trap based on if it finds the text it is looking for which will alert things.
Thanks in advance as any guidance is appreciated.
I am not a big scripter and even with the interface, very new to me and sort of lost. Once I get some direction and do things a few times I will start tp pick it up.
Here is what I need to do if anyone can help.
Basically, I have a log file being created in txt format. Appends each day, adds the date and results of somthing.
I need to look at the file, and if it sees a particular portion of text (preferrably looking at todays date first and searching anything after that instance), it then needs to either send an email, page, or some sort of alert.
Last part I may play with as I eventually will try and create an snmp trap based on if it finds the text it is looking for which will alert things.
Thanks in advance as any guidance is appreciated.