tags:

views:

335

answers:

4
ctrl-z
disown -h %1
bg 1

logout
A: 

I would check out this tutorial

Brian Agnew
A: 

The one and only canonical way is to already start the stuff inside a screen.

TheBonsai
+2  A: 
ctrl-z the program
bg %  so it wont die when you logoff
screen retty $Pid
will attach the running program into screen
mog
Linux only AFAICT.
Alexander Kellett
A: 

Yes, this is an old question, but I'm sure others have been in the same position. This gentleman's gdb script wizardry allows one to "repoint" file descriptors in running processes. It can be done per-process by PID, or will call fuser to find all processes using the file. I also just confirmed it works on /dev/pty/*, so STD(IN,OUT,ERR) are possible as well.

http://groups.google.com/group/alt.hackers/browse_thread/thread/d1932c31ce43bd4c

phreakocious