Date: Sat, 27 Mar 2010 19:26:10 -0500 From: Kevin Kinsey <kdk@daleco.biz> To: Jozsef Vadkan <jozsi.avadkan@gmail.com> Cc: FreeBSD Mailing list <freebsd-questions@freebsd.org> Subject: Re: "internet connection tester script" Message-ID: <4BAEA222.2060904@daleco.biz> In-Reply-To: <1269691634.12702.11.camel@debian> References: <1269691634.12702.11.camel@debian>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BAEA222.2060904>