[Gllug] Re-access broken remote connection to process?
Richard Jones
rich at annexia.org
Tue Jun 22 18:41:05 UTC 2010
On Mon, Jun 21, 2010 at 11:15:18AM +0100, Robert McKay wrote:
> On Tue, Jun 15, 2010 at 8:08 PM, gvim <gvimrc at gmail.com> wrote:
>
> > Supposing I'm connected remotely to a server process via SSH and I lose
> > that connection. The process is still running and it's ID is available via
> > top or ps but can I get its output back into a tty? If so, how?
> >
>
> You can attach to the process with a debugger, open a new tty and then dup
> stdin/stdout/stderr to the new tty. I once wrote a shell script to automate
> this process. It does work - however not always for various reasons.
Well done. That is both very cool and very evil at the same time.
Rich.
--
Richard Jones
Red Hat
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list