Date: Fri, 10 Jan 2003 16:22:04 -0800 From: Chris Doherty <chris-freebsd@randomcamel.net> To: Martin Gignac <lmcgign@phoenix.mobilitylab.net> Cc: freebsd-questions@freebsd.org Subject: Re: Running portupgrade in the background? Message-ID: <20030111002204.GZ27147@zot.electricrain.com> In-Reply-To: <20030110174631.K74344@phoenix.mobilitylab.net> References: <20030110174631.K74344@phoenix.mobilitylab.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030111002204.GZ27147>
