From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 08:37:35 2011 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 514441065675 for ; Thu, 27 Jan 2011 08:37:35 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1139F8FC08 for ; Thu, 27 Jan 2011 08:37:34 +0000 (UTC) Received: by gxk8 with SMTP id 8so540914gxk.13 for ; Thu, 27 Jan 2011 00:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=/2WKjSawGpTgRb1oXyGGeJr7ofjeG5eyfm9bLO7lRvk=; b=X6R6wglugmnW+xW9xcu2JTtAib3aRVW4s1r5lCooJDalCzdxHJRYZmK2Z18GFsEN9V V1rgGeo/U7KEmBvIh3PwpIjfbicfMcp0BDNQEOSBNhoyRKV8FOSp9ALnsFJ1C5kdvzzo u4Ty16nIV+N0DlD4964kiKyM/tZDIO5eii484= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kD9ePzFXsfBe6kYk2jr3MSXX86Krrb8hH8X6934SvBHebiRj+/G/alxugvIVT+IoTH v8alk1KZa+4vOsAk0aPct8mXvLWyPfL1uCQnRxkgYzgsoxrjcPi3Huu2OpqSsYCNSB6Q HcFXVvYwq2IxPQGgZTeXQaeKwx3VAEVaWbyJI= MIME-Version: 1.0 Received: by 10.236.109.146 with SMTP id s18mr1365106yhg.28.1296117454092; Thu, 27 Jan 2011 00:37:34 -0800 (PST) Received: by 10.236.110.10 with HTTP; Thu, 27 Jan 2011 00:37:34 -0800 (PST) Date: Thu, 27 Jan 2011 03:37:34 -0500 Message-ID: From: Aryeh Friedman To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: OT: How to set a timeout for a process 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: Thu, 27 Jan 2011 08:37:35 -0000 I have a script that may or not hang (the reasons why it hangs are unimportant here) and need to call it from an other script and need to say if it hangs to give up after X seconds and just continue the script (no harm done if it fails)