Watty wrote:

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?

How exactly do you want it parsed? uptime vs. downtime? number of updates? average time between updates? how many zeros are in your file?


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to