Hi, I am constantly automaticaly downloading a few things on the internet but since my internet connection is unstable, it sometimes wont work. Thing is the internet will appear to be connected, but no website can be accessed and no program can successfully connect to any location. I can fix this issue once detected by turning adsl modem off and on.
So I want to write a program that detects this. So say, every 5 minutes, checks to see if internet works. I was thinking it would prob just run something like "ping www.google.com" every 5mins and if it doesnt work (ie if it cant get any information from google), it will run some file (like a mp3, to alert me). Problem is ping keeps gettin data requests nonstop from looks of it. so how would i go about doing this? i have never done shell scripting so i dont really know how? if anyone could help me with a solution that would be great. I am using cygwin under win xp. -- View this message in context: http://old.nabble.com/simple-script-to-alert-if-internet-not-working--tp28875253p28875253.html Sent from the Gnu - Bash mailing list archive at Nabble.com.