Re: Ping hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Weber wrote:

I have a simple script running on my firewall that simply sends a
single ping packet to a web site I trust every minute. If the ping
fails, I assume my DSL line went down... again.


[snip]

LOG_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 }


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.10

jch








[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux