From owner-freebsd-questions@FreeBSD.ORG Sat May 3 09:06:19 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3B7A37B401 for ; Sat, 3 May 2003 09:06:19 -0700 (PDT) Received: from mail.munk.nu (213-152-51-194.dsl.eclipse.net.uk [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D05B43F75 for ; Sat, 3 May 2003 09:06:19 -0700 (PDT) (envelope-from munk@mail.munk.nu) Received: from munk by mail.munk.nu with local (Exim 4.14) id 19BzY3-000ED7-Ak for freebsd-questions@freebsd.org; Sat, 03 May 2003 17:07:39 +0100 Date: Sat, 3 May 2003 17:07:39 +0100 From: Jez Hancock To: FreeBSD questions List Message-ID: <20030503160739.GA54496@users.munk.nu> Mail-Followup-To: FreeBSD questions List References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: How do i redirect tty output? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 16:06:20 -0000 On Sat, May 03, 2003 at 07:16:34AM +0000, Mack Lobell wrote: > Hi, > > i want ro run the command "portupgrade -aF" in the background, but i always > end up in suspended state. I have tried different redirect operators but no > luck. Currently i'm using tcsh. > > example: > prompt# portupgrade -aF >& /dev/null & Have a go with: prompt# (nohup portupgrade -aF >& /dev/null) & I think this should work (although you might need to enclose the trailing '&' inside the brackets as well). Also you might not even need the 'nohup' here because effectively the command is running in it's own 'forked' environment (though I may be wrong:). Have a play, try starting something less volatile than portupgrade (sleep 100 for example?), logging out, logging back in and seeing if it's still running. Good luck, Jez