From owner-freebsd-questions Sat Nov 17 6:10:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id A819337B405 for ; Sat, 17 Nov 2001 06:10:41 -0800 (PST) Received: from hades.hell.gr (patr530-a106.otenet.gr [212.205.215.106]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id fAHEAav27559; Sat, 17 Nov 2001 16:10:36 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id fAHDd0A29406; Sat, 17 Nov 2001 15:39:00 +0200 (EET) (envelope-from charon@labs.gr) Date: Sat, 17 Nov 2001 15:39:00 +0200 From: Giorgos Keramidas To: Christopher Farley Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Change process from foreground to background? Message-ID: <20011117133859.GB28425@hades.hell.gr> References: <20011117012342.A16515@northernbrewer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011117012342.A16515@northernbrewer.com> User-Agent: Mutt/1.3.23.1i 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 2001-11-17 01:23:45, Christopher Farley wrote: > I'm sitting at my workstation and I ssh into server 1 and start running > a long dump, expected to take 3 hours. > > About 30 minutes into the dump, I decide I want to install a new SCSI > card in my workstation, and would like to shutdown the computer. Doing > so would kill my dump operation, however. You can install on the remote machine `screen'. Then once you ssh to it you fire up a screen session, and in that screen session, run the dump or any other long-running process. When you want to leave the remote machine and have dump run in the `background', you detach from the screen with `^A d' and leave it running. Later on, you want to check the screen session to see how things are going, and you ssh back to the remote machine. You start the detached screen, with `screen -r' instead of just `screen' and it resumes the detached session. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message