From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 21:27:58 2009 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 6CE17106566B for ; Thu, 22 Jan 2009 21:27:58 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id EB6848FC0C for ; Thu, 22 Jan 2009 21:27:57 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by ey-out-2122.google.com with SMTP id d26so552256eyd.7 for ; Thu, 22 Jan 2009 13:27:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=jp3kZZ86GWnrFh5i3M0g3ZhA+i1KzAERTTj7SU8+A3I=; b=hbRLfULVXrAYdt2MRUj4He/m7ykj+qXdGMXuYZV/xC6ckNSLS5MyCvaeuX8gzGhGEt xRNTmyhQXUbGDSXMdomw+T5pHBy1sxj6s9+V2DpIZfiSvIiE5UxtAUPqpxAD85T96ney PcRwUmKHM8p7pJchnv+pZ1MPjtrJxgkZyESCA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=vpbQXc295I6MHqU10KCDjxU/f+68P0H78OgIwMCBokEcqkHyue+zV5G7ZB3J/JahL9 l3Iae/HuAthUnKhS5cun6HaafhqfBy4W0qr1RfWLk7EYsOggpPwX1FD6J5dMHZ9nY16t VY29hWQwAynjgdEM58MVj2r12IA7Aml4LkwOI= Received: by 10.210.130.14 with SMTP id c14mr488272ebd.92.1232659677019; Thu, 22 Jan 2009 13:27:57 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id b30sm19760602ika.12.2009.01.22.13.27.55 (version=SSLv3 cipher=RC4-MD5); Thu, 22 Jan 2009 13:27:56 -0800 (PST) Date: Thu, 22 Jan 2009 21:27:52 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090122212752.6fd5f8fb@gumby.homeunix.com> In-Reply-To: <560f92640901221241y4fc1620aree083a812c1f3c8d@mail.gmail.com> References: <560f92640901221241y4fc1620aree083a812c1f3c8d@mail.gmail.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: shell scripting, how to auto-timeout? 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, 22 Jan 2009 21:27:59 -0000 On Thu, 22 Jan 2009 12:41:14 -0800 Nerius Landys wrote: > /usr/local/bin/java PipeGenerator $* & > sleep 1 > > > Also with the above code I would be waiting for 1 second even if the > java process finished sooner. But that is a penalty I'm willing to > pay, unless there is a more elegant solution. sleep 1 && &