From owner-freebsd-questions Fri Jan 10 16:22:12 2003 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 6F80937B401 for ; Fri, 10 Jan 2003 16:22:11 -0800 (PST) Received: from electricrain.com (electricrain.com [64.71.143.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B991143F18 for ; Fri, 10 Jan 2003 16:22:10 -0800 (PST) (envelope-from fuzzy@electricrain.com) Received: (qmail 21981 invoked by uid 540); 11 Jan 2003 00:22:04 -0000 Date: Fri, 10 Jan 2003 16:22:04 -0800 From: Chris Doherty To: Martin Gignac Cc: freebsd-questions@freebsd.org Subject: Re: Running portupgrade in the background? Message-ID: <20030111002204.GZ27147@zot.electricrain.com> Reply-To: chris-freebsd@randomcamel.net References: <20030110174631.K74344@phoenix.mobilitylab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030110174631.K74344@phoenix.mobilitylab.net> User-Agent: Mutt/1.4i X-Operating-System: XEmacs X-Koan: mu. Organization: The Inside Foundation Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jan 10, 2003 at 05:54:17PM -0500, Martin Gignac said: > Hi, > > I'm often use portupgrade in combination with sudo from an SSH session and > up till now I've never been able to put the portupgrade process in the > background so that it can finish its job and I can safely exit the SSH > session. when a process dies, in general all of its child processes die with it. in this case the portupgrade process is a child of the ssh session and dies when you log out. the solution is nohup(1): % nohup portupgrade $options & which should leave the process running after you log out, and will dump the output to the file nohup.out unless you redirect it elsewhere. HTH, chris ------------------------------- Chris Doherty chris [at] randomcamel.net "I think," said Christopher Robin, "that we ought to eat all our provisions now, so we won't have so much to carry." -- A. A. Milne ------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message