From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 22:58:12 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 F0A651065670 for ; Thu, 22 Jan 2009 22:58:12 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 7876C8FC19 for ; Thu, 22 Jan 2009 22:58:12 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2817324fgb.35 for ; Thu, 22 Jan 2009 14:58:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sNYt43Lvv4heDkvmqVJsFLg/VdjthqHVUzh8Xlkh904=; b=At892F1j/87OisvQQsNP5K0+gMID2E6gD9RoWcjPGKHoPVWHG8b3C/sUP+pxbiFpTF ag/Ctf91yKv6eY2i1Vt8+6+1KOBmyCGwLMaPv1hwTeZvPwEJ8DtrMJ9GX27RzK9hZVGp 0XOxsxhifeAHwFd46ohCdwqjPJTKbGnH0CQ/I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CIbvbUBEa9xcOsbfwGFVYQjju1DhLrd+JeXQch08IR00fSuxx8O77S18qsWVZavIq9 djT+eNg+6jXsb4kYcxE//RoMBoUvcZmGu04X+dBCaQF+WFO7LTvtnE/IFKrPwKMDTvLS V697XjLBSO1LO6Vh/J4fnOPCLDY3hyCFa1aR0= MIME-Version: 1.0 Received: by 10.181.148.13 with SMTP id a13mr758075bko.20.1232665091192; Thu, 22 Jan 2009 14:58:11 -0800 (PST) In-Reply-To: <560f92640901221451j2e2b259bw1559a8c8d8912941@mail.gmail.com> References: <560f92640901221241y4fc1620aree083a812c1f3c8d@mail.gmail.com> <26ddd1750901221333x5356f4f3l6b6410fc05d4e6d4@mail.gmail.com> <560f92640901221451j2e2b259bw1559a8c8d8912941@mail.gmail.com> Date: Thu, 22 Jan 2009 14:58:11 -0800 Message-ID: <560f92640901221458y9409360n34904461fb2580e4@mail.gmail.com> From: Nerius Landys To: Maxim Khitrov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 22:58:13 -0000 Actually, because of the "exec" in the parent script, the line below it, the "killing terminator process" line, never gets reached. So the terminator process that waits to kill its parent always waits the full 5 seconds in the background. If I pipe the output of the parent script through less, it waits 5 seconds before it reaches the end of the output. That is annoying. Is there any way to solve that?