From owner-freebsd-questions@FreeBSD.ORG Wed Dec 27 00:45:26 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D449616A40F for ; Wed, 27 Dec 2006 00:45:26 +0000 (UTC) (envelope-from prvs=johnl=05090babcd@iecc.com) Received: from xuxa.iecc.com (xuxa.iecc.com [208.31.42.42]) by mx1.freebsd.org (Postfix) with SMTP id 93DC113C48B for ; Wed, 27 Dec 2006 00:45:26 +0000 (UTC) (envelope-from prvs=johnl=05090babcd@iecc.com) Received: (qmail 8700 invoked from network); 26 Dec 2006 23:45:25 -0000 Received: from simone.iecc.com (208.31.42.47) by mail2.iecc.com with QMQP; 26 Dec 2006 23:45:25 -0000 Date: 26 Dec 2006 23:45:25 -0000 Message-ID: <20061226234525.72192.qmail@simone.iecc.com> From: John Levine To: freebsd-questions@freebsd.org In-Reply-To: <26face530612261526r3954a4d6m972feba654b332b9@mail.gmail.com> Organization: Mime-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Cc: kelly.terry.jones@gmail.com Subject: Re: Unix/sh/bash/tcsh command to limit clock time for program? 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: Wed, 27 Dec 2006 00:45:26 -0000 >Is there a Unix or shell command that runs a given program for n >seconds and then terminates it (unless the program takes less than n >seconds to run, obviously)? some-command& sleep 42; kill -9 $! R's, John