bash script to check ISP uptime
Hello, would it be possible, and reliable to make a bash script for checking the reliability of the ISP?
I live in a dormitary, and I really hate my ISP, but I read that they have committed themself for a 99,5% uptime, I think they are braking this promise, as the connection is pretty unstable, so I want to take it to the test and make a bash script to test it, but I need help to do so.
Would it be sufficient and possible to get a boolean result from "ping www.google.com", insert it in a log file together with a time stamp, and make it run every minute or so, and somehow calculate the percentage of the boolean values?
Last edited by jakupl; June 7th, 2009 at 07:37 PM.
Ubuntu 10.10 Maverick | ASUS A6Rp | Intel(R) Celeron(R) M CPU 420 @ 1.60GHz | 4 GB ram |
Graphic Card: ATI Technologies inc RC410 [Radeon Xpress 200M]