From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 13:47:28 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 4ED24106564A for ; Thu, 27 Jan 2011 13:47:28 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 234338FC1B for ; Thu, 27 Jan 2011 13:47:27 +0000 (UTC) Received: by iyb26 with SMTP id 26so1518359iyb.13 for ; Thu, 27 Jan 2011 05:47:27 -0800 (PST) Received: by 10.231.206.1 with SMTP id fs1mr924527ibb.193.1296136047497; Thu, 27 Jan 2011 05:47:27 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.143.1 with HTTP; Thu, 27 Jan 2011 05:47:07 -0800 (PST) In-Reply-To: References: From: Eitan Adler Date: Thu, 27 Jan 2011 08:47:07 -0500 Message-ID: To: Aryeh Friedman Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Mailing List Subject: Re: 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 13:47:28 -0000 On Thu, Jan 27, 2011 at 3:37 AM, Aryeh Friedman wrote: > 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) or in addition to my previous answer use /usr/ports/sysutils/timelimit -- Eitan Adler