From owner-freebsd-ports@FreeBSD.ORG Wed Dec 5 03:55:52 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A1CE316A419 for ; Wed, 5 Dec 2007 03:55:52 +0000 (UTC) (envelope-from bkelly@vadev.org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7A5AC13C455 for ; Wed, 5 Dec 2007 03:55:52 +0000 (UTC) (envelope-from bkelly@vadev.org) Received: (qmail 12474 invoked from network); 5 Dec 2007 03:29:11 -0000 Received: from vadev.org (HELO [192.168.1.98]) (Desdicardo@[66.92.166.151]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Dec 2007 03:29:11 -0000 Message-ID: <47561B27.3020609@vadev.org> Date: Tue, 04 Dec 2007 22:29:43 -0500 From: Ben Kelly User-Agent: Thunderbird 1.5.0.13 (Macintosh/20070809) MIME-Version: 1.0 To: Doug Barton References: <20071128013623.GA48799@belle.0lsen.net> <475488D8.2090301@FreeBSD.org> <20071203231312.GA1449@ted.stsp.lan> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Wes Morgan , freebsd-ports@freebsd.org Subject: Re: How to get portinstall to 'shut up' so I can run it in background X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 03:55:52 -0000 Doug Barton wrote: > On Mon, 3 Dec 2007, Wes Morgan wrote: > >> On Tue, 4 Dec 2007, Stefan Sperling wrote: >> >>> Screen also has log functionality. >>> Toggle with: Ctrl+A, then Shift+H >> >> You can also use "script" to capture the output fairly easily. > > So you have to use two different programs, one of which is a port, to > accomplish what nohup will do by itself. :) My point being that a lot of > people seem to think that screen(1) is the answer, no matter what the > question, when often simpler answers exist. > > If you're one of those people, that's fine, I learned a long time ago > I'm not going to change your mind. But I do think it's useful to note > that there are other valid solutions, even if simply for completeness sake. Maybe I am doing something wrong, but I have never been able to get nohup to work correctly with portupgrade for this sort of this. For example: ianto# nohup portupgrade -a >& /tmp/port.log & [1] 6238 ianto# [1] + Suspended (tty output) portupgrade -a >& /tmp/port.log ianto# ianto# cat /tmp/port.log ianto# I've never had time to figure out why it suspends, though. Anyone know? > Doug