From owner-freebsd-stable@FreeBSD.ORG Sat Nov 13 22:37:58 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1CFA16A4CE for ; Sat, 13 Nov 2004 22:37:58 +0000 (GMT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5B6843D1F for ; Sat, 13 Nov 2004 22:37:57 +0000 (GMT) (envelope-from stb@lassitu.de) Received: from [IPv6:::1] (schlepper [212.12.50.230]) by schlepper.zs64.net (8.12.11/8.11.1) with ESMTP id iADMbtf2099602; Sat, 13 Nov 2004 23:37:56 +0100 (CET) (envelope-from stb@lassitu.de) In-Reply-To: <001901c4c9b4$260aba30$6500a8c0@CIClaptop> References: <001901c4c9b4$260aba30$6500a8c0@CIClaptop> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Sat, 13 Nov 2004 23:37:54 +0100 To: "Oren Baum" X-Mailer: Apple Mail (2.619) cc: freebsd-stable@freebsd.org Subject: Re: Grabbing hold of logged out but active tty X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 22:37:59 -0000 Am 13.11.2004 um 20:08 schrieb Oren Baum: > UpOnlineHi, > > I'm running 4.10 and was wondering if there's a trick to regaining > control of another tty session that is still running (under ps) but I > (the user) have been logged out. This happens to me on occasion when > I'm running some programs in the background and am logged out by the > shell. If you regularly have long-running sessions, and you might need to disconnect from and reconnect to them, you should start them from within screen (misc/screen). If you have really important things in that session right now that you can only recover immediatly, you could try the snp(4) device together with watch(8) to hook onto the tty, but your success might be limited by the fact that the tty is effectivly closed. snp(4) can be loaded as a module. Good luck, Stefan -- Stefan Bethke Fon +49 170 346 0140