Log parsing

From: Date: Sat, 14 Aug 2004 21:14:37 +0000
Subject: Log parsing
Groups: php.general 
Request: Send a blank email to php-general+get-193836@lists.php.net to get a copy of this message
I have a dynamic IP address, I used everydns.net as a DNS server. I have a bash script that runs with cron that checks the current IP of the machine with the DNS record so that if my IP changes; it can run the update program. I would like to do some thorough availability reports, so I started by writing the result of the bash script to a log file. I want to parse the log file to give me availability reports. The log file is in the form: 08/14/04 09:10:01 [TAB] S - when the IP check returns OK 08/14/04 09:10:01 [TAB] U - when the IP need to be synchronised The process does not run when the computer is not on, so that needs to be taken into consideration. Can anyone come up with a script that will carry out this process efficiently? Thanks in advance, Watty

« previous php.general (#193836) next »