From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 09:53:35 2004 Return-Path: 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 4ECBA16A4CE for ; Mon, 18 Oct 2004 09:53:35 +0000 (GMT) Received: from malibu.wideroe.net (malibu.wideroe.net [193.71.196.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id A927E43D31 for ; Mon, 18 Oct 2004 09:53:34 +0000 (GMT) (envelope-from andreas@wideroe.net) Received: from hangloose.wideroe.net (187.80-202-145.nextgentel.com [80.202.145.187]) (authenticated bits=0) by malibu.wideroe.net (8.12.10/8.12.10) with ESMTP id i9I9rVMg098081 (version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO); Mon, 18 Oct 2004 11:53:32 +0200 (CEST) (envelope-from andreas@wideroe.net) Message-Id: <6.1.2.0.2.20041018115056.03bfaaa0@malibu.wideroe.net> X-Sender: awand@malibu.wideroe.net X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Mon, 18 Oct 2004 11:53:29 +0200 To: "Karel J. Bosschaart" From: Andreas =?iso-8859-1?Q?Wider=F8e?= Andersen In-Reply-To: <20041018094924.GA93028@kayjay.xs4all.nl> References: <6.1.2.0.2.20041018112957.03b9ccc0@malibu.wideroe.net> <20041018094924.GA93028@kayjay.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on malibu.wideroe.net cc: freebsd-questions@freebsd.org Subject: Re: Recover lost ttyps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 09:53:35 -0000 At 11:49 18.10.2004, Karel J. Bosschaart wrote: >On Mon, Oct 18, 2004 at 11:30:02AM +0200, Andreas Wider=F8e Andersen wrote: > > Hi, > > Is there a simple way (as root) to recover lost ttyps? > >Not that I know, but I would be interested to know if it is possible. Does >the process (port build for example) still run? When it happens to me, the >processes in the ttyp usually are killed, except when run with 'nohup'. > > > Example: I'm rebuilding some ports and while this is done the ADSL line= is > > disconnected. A few seconds later I'm back online, but the ttyp0 is lost > > and I'm now logged in as root on ttyp1. > >I use 'screen' (it's in ports: misc/screen) nowadays to work around the >problems when a connection is dropped and I'm very happy with it: >http://www.gnu.org/software/screen/ . >I'm using it right now to do a buildworld in a KDE session; if KDE or >X would crash, the buildworld does not stop and I can simply reconnect :-). > >Karel. Thanks, Yes, the processes still run and when finished the port is successfully=20 installed, but then the session disconnects. Windows Terminal Server have=20 this nice function where you can recover lost sessions. I was hoping=20 FreeBSD also had this, allthough I've never heard about it before and I've= =20 been using FreeBSD for 5 years now. I know about screen, but you don't always "expect" a connection to be= broken... Cheers, Andreas --- Andreas Wideroe Andersen Mobile: (+47) 90 92 61 21 http://www.filmshooting.com=20