From owner-freebsd-questions Tue Jul 24 8: 3: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web9404.mail.yahoo.com (web9404.mail.yahoo.com [216.136.129.110]) by hub.freebsd.org (Postfix) with SMTP id B4F7937B40C for ; Tue, 24 Jul 2001 08:02:59 -0700 (PDT) (envelope-from eric_boucher60@yahoo.com) Message-ID: <20010724150259.57861.qmail@web9404.mail.yahoo.com> Received: from [207.164.184.163] by web9404.mail.yahoo.com; Tue, 24 Jul 2001 08:02:59 PDT Date: Tue, 24 Jul 2001 08:02:59 -0700 (PDT) From: Eric Boucher Subject: TCL/TK: knowing if a command is not responding To: FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Does somebody know if it's possible in TCL/TK to know if a command is not responding? Because I'm writing a little script which ping some machine on my network to see if they are there and if they are, I'm doing a little process. But sometimes, I'm able to ping the machine but the machine is not responding. So if I do for example a remote shell on those machine, the script will wait forever for a response. I want to be able to know if a command is not responding, or to do something else if the command is not responding for, let's say, 15 secondes. If it's not possible in TCL, maybe someone can tell me how to do it in shell script (csh or sh). Thanks Eric Boucher __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message