From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 25 18:56:40 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4282106566B for ; Fri, 25 Jun 2010 18:56:40 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 765378FC18 for ; Fri, 25 Jun 2010 18:56:40 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 8C1421FFC33; Fri, 25 Jun 2010 18:56:39 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id A53FE8452A; Fri, 25 Jun 2010 20:54:28 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Patrick Mahan References: <4C21A743.6040306@mahan.org> <86hbkujdto.fsf@ds4.des.no> <4C24A7B4.5050301@mahan.org> <86mxujdziz.fsf@ds4.des.no> <4C24D9BC.7030008@mahan.org> Date: Fri, 25 Jun 2010 20:54:28 +0200 In-Reply-To: <4C24D9BC.7030008@mahan.org> (Patrick Mahan's message of "Fri, 25 Jun 2010 09:30:52 -0700") Message-ID: <86iq57djtn.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Help with some makefile hackery X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2010 18:56:40 -0000 Patrick Mahan writes: > Maybe I should do this instead? > > src-kernel: src-kernel-tools > cd src; ./amd64-kernel.sh 2>&1 > build_amd64_kernel.log; \ > tail -f build_amd64_kernel.log > > It is not too clear if the status is the last one in a compound > command. This won't work, because tail won't start until the build is done. You should just pass the file name as an argument to your script and handle it there. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no