Recover lost ttyps
andreas at wideroe.net
Mon Oct 18 02:53:35 PDT 2004
At 11:49 18.10.2004, Karel J. Bosschaart wrote:
>On Mon, Oct 18, 2004 at 11:30:02AM +0200, Andreas Widerøe 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:
>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 :-).
Yes, the processes still run and when finished the port is successfully
installed, but then the session disconnects. Windows Terminal Server have
this nice function where you can recover lost sessions. I was hoping
FreeBSD also had this, allthough I've never heard about it before and I've
been using FreeBSD for 5 years now.
I know about screen, but you don't always "expect" a connection to be broken...
Andreas Wideroe Andersen <andreas at wideroe.net>
Mobile: (+47) 90 92 61 21
More information about the freebsd-questions