From owner-freebsd-questions@FreeBSD.ORG Sun Mar 28 00:26:16 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A48D7106564A for ; Sun, 28 Mar 2010 00:26:16 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 5A6DB8FC18 for ; Sun, 28 Mar 2010 00:26:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.3/8.14.2) with ESMTP id o2S0QEiu099561; Sat, 27 Mar 2010 19:26:14 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iAzfEXX5V6Cd; Sat, 27 Mar 2010 19:26:12 -0500 (CDT) Received: from archangel.daleco.biz (ezekiel.daleco.biz [66.76.92.18]) by ezekiel.daleco.biz (8.14.3/8.14.3) with ESMTP id o2S0QAbl099557; Sat, 27 Mar 2010 19:26:11 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4BAEA222.2060904@daleco.biz> Date: Sat, 27 Mar 2010 19:26:10 -0500 From: Kevin Kinsey User-Agent: Thunderbird 2.0.0.23 (X11/20090929) MIME-Version: 1.0 To: Jozsef Vadkan References: <1269691634.12702.11.camel@debian> In-Reply-To: <1269691634.12702.11.camel@debian> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing list Subject: Re: "internet connection tester script" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2010 00:26:16 -0000 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