I have a simple script running on my firewall that simply sends a[snip]
single ping packet to a web site I trust every minute. If the ping
fails, I assume my DSL line went down... again.
If your DSL connection is down then the hostname won't resolve either ... you need a network connection to look up www.kcpt.org. Your best bet is to replace the hostname with 208.14.187.10LOG_FILE=/var/log/ping_log TARGET_IP="www.kcpt.org"
# echo log to $LOG_FILE
if ping -c 1 $TARGET_IP >> /dev/null { If you put >> $LOG_FILE here
you can see the no route stuff }
jch