From owner-freebsd-questions Wed May 15 19:38:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 4441A37B401 for ; Wed, 15 May 2002 19:38:48 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.12.2/8.12.3) id g4G2clML024173; Wed, 15 May 2002 21:38:47 -0500 (CDT) (envelope-from dan) Date: Wed, 15 May 2002 21:38:47 -0500 From: Dan Nelson To: Lord Raiden Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Taking control of process Message-ID: <20020516023847.GW8958@dan.emsphone.com> References: <4.2.0.58.20020515221622.00952b50@pop.netzero.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4.2.0.58.20020515221622.00952b50@pop.netzero.net> User-Agent: Mutt/1.3.99i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error 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 In the last episode (May 15), Lord Raiden said: > Hi. Silly question, but this thought happened to strike me. > Say for example someone's shelled into a server from a windows box, > suddenly windows bites it, but they're running a mission critical > process that if interrupted perty well will hose the works and the > whole system. > > Now, my question is this. Is there a way to take control of a > process or terminal session that someone else is running should they > have to back out so that what's being done isn't stopped in the > middle? Or if not, can the command executed via that terminal or ssh > session at least be allowed to orphan off from the controlling > terminal session and run on its own till completion? Like for > example "make world" or "cvsup"?? Can this be done through another > ssh session or only from the console? Thanks for feeding my > curiosity and I promise not to let it kill me. :) You want ports/misc/screen. It allows you to create a session composed of multiple windows that can be detached and reattached from another location (or multiple locations at once for shared viewing). You can also tell screen to auto-detach if the parent shell disappears. It's one of those invaluable tools everyone should install when setting up a machine. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message