"internet connection tester script"

Kevin Kinsey kdk at daleco.biz
Sun Mar 28 00:26:16 UTC 2010


Jozsef Vadkan wrote:
> Why doesn't my "internet-connection" script work?
> 
> When I plug the ethcable out, it just waits...and waits...and waits...
> 
> The script: http://pastebin.com/AE9U1qdL

As someone has noted, you're waiting on ping to timeout a bunch
of times.  And really, I'm not sure why this script is needed.
In ~/.cshrc:

alias up	ping -t3 yahoo.com

  ... or something (your .bashrc equivalent, or .shrc, etc.)
should do the trick, with much less effort on all fronts.

HTH,

Kevin Kinsey


More information about the freebsd-questions mailing list