From owner-freebsd-questions@FreeBSD.ORG  Tue Mar 30 21:06:43 2004
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
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 194A516A4CE
	for <freebsd-questions@freebsd.org>;
	Tue, 30 Mar 2004 21:06:43 -0800 (PST)
Received: from bayok.msumain.edu.ph (unknown [203.177.105.166])
	by mx1.FreeBSD.org (Postfix) with SMTP id 417F443D31
	for <freebsd-questions@freebsd.org>;
	Tue, 30 Mar 2004 21:06:38 -0800 (PST)
	(envelope-from rfa@msumain.edu.ph)
Received: (qmail 2988 invoked from network); 31 Mar 2004 05:28:41 -0000
Received: from unknown (HELO bayok.msumain.edu.ph) (203.177.105.166)
  by 203.177.105.166 with SMTP; 31 Mar 2004 05:28:41 -0000
Received: from 203.177.105.170 (proxying for 192.168.16.12)
        (SquirrelMail authenticated user rfa)
        by bayok.msumain.edu.ph with HTTP;
        Wed, 31 Mar 2004 13:28:41 +0800 (PHT)
Message-ID: <1789.203.177.105.170.1080710921.squirrel@bayok.msumain.edu.ph>
In-Reply-To: <4063A1E8.7040008@daleco.biz>
References: 
     <20040326092248.4845573e.y2kbug@ms25.hinet.net><1080264423.630.11.came
     l@gandalf> <4063A1E8.7040008@daleco.biz>
Date: Wed, 31 Mar 2004 13:28:41 +0800 (PHT)
From: rfa@msumain.edu.ph
To: "Kevin D. Kinsey, DaleCo, S.P." <kdk@daleco.biz>,
	freebsd-questions@freebsd.org
User-Agent: SquirrelMail/1.4.0
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
Subject: Re: log off with process running
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Mar 2004 05:06:43 -0000

>>nohup is a possible solution; check its man page.
>>
>>Example:
>>
>>$ nohup wget http://server/big.iso &
>>
>>On Fri, 2004-03-26 at 05:22, Robert Storey wrote:
>>
>>>I want to log off and hang up the modem. The question is, how to do so?
>>> With the above process running, I can't even get back to the command
line to type "exit"
>>>(and wouldn't typing "exit" kill any process I'm running?). Ditto if I
>>> hit ctrl-c. I suppose I could just hang up the modem, but that's not
>>> elegant.
>

> Screen, nohup, etc; all great answers.
>
> Just for curiosity's sake, isn't standard redirection
> the first thing to think of?
>
> #cvsup /ports-via-modem.sup > /root/cvsuplog &
>
> Wanna get it back?
>
> #jobs
> [1]  + Running                       cvsup /ports-via-modem.sup >
> /root/cvsuplog
>
> Wanna keep it in the bg, but check its current status?
>
> $tail -f  /myhome/cvsuplog
>
> Willing to be educated,
>
> Kevin Kinsey
> DaleCo, S.P.
>

I was wondering if I did something like this using putty:

#nohup btlaunchmany.py . &

and then the session was terminated because of a power spike, how could I
put the process back into the foreground after logging in again so I could
see its statistics?  I wouldnt want to use redirection because it would
probably use too much disk.

Thanks,

Rommel