From owner-freebsd-questions@FreeBSD.ORG Thu Aug 9 20:31:03 2007 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 AAD2F16A41B for ; Thu, 9 Aug 2007 20:31:03 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 7D61913C458 for ; Thu, 9 Aug 2007 20:31:03 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 71491EBC81; Thu, 9 Aug 2007 16:31:02 -0400 (EDT) Date: Thu, 9 Aug 2007 16:31:01 -0400 From: Bill Moran To: Reid Linnemann Message-Id: <20070809163101.c8623754.wmoran@potentialtech.com> In-Reply-To: <46BB77C2.2020809@cs.okstate.edu> References: <46BB75D0.3080200@calarts.edu> <46BB77C2.2020809@cs.okstate.edu> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Sean Murphy , freebsd-questions@freebsd.org Subject: Re: How do I make install clean a port in the background 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, 09 Aug 2007 20:31:03 -0000 In response to Reid Linnemann : > Written by Sean Murphy on 08/09/07 15:15>> > > How do I make install clean a port in the background? I used > > > > cd /usr/ports/www/apache22 > > make install clean & > > > > it returns the pid but then compiles in the foreground > > > > What am I doing wrong? > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > You're just seeing the output in the foreground, since the stdio and > stderr for that process are still directed to the terminal. If you are > using bash, you could "make install clean &> /dev/null &" to have the > process operate in the background and direct all output the the > bitbucket. I don't know the analog for other shells. That's only going to help so much. Most ports are going to generate compiler warnings that go to stderr, which will still spam your screen. First off, I recommend directing to a file instead of /dev/null. That way if it fails, you have the output to review. Secondly, redirect both standard out and standard error. In bourne shells: make install clean >~/buildlog.txt 2>&1 & -- Bill Moran http://www.potentialtech.com