[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Detaching and reattaching a process to different terminals?



On Thu, Jul 22, 2004 at 09:00:46AM -0400, Stephen Touset wrote:
> I'm running a program for a research study I'm involved in, but I've run
> into a slight problem. I executed it on an xterm (and it's been running
> for a few days now, so I don't want to stop it mid-calculation), but
> today is a workday. At work, I use two screens on my laptop. The only
> way to accomplish this is to restart X so Xinerama can take effect.
> Unfortunately, this will also have the nasty side effect of killing
> execution.
> 
> Is there any way to detach the pid from that terminal and reattach it to
> one of the consoles? Or background it in a way where it will survive X
> restarting? It's not critical, but it's something I've wondered before,
> and which will come in extremely handy today.
> 

I don't know if it will do what you want since I think it was orphaned
a bit, but is in a working state, although a bit limited. Have a look at

http://cryopid.berlios.de/

It spawned out of an idea on software suspend development list. It will
suspend the whole process saving its state and will allow you to restart
it later.

IIRC it didn't get to the point of handling open file descriptors (and
thus sockets), and doesn't restore the process pid, but if your process
doesn't have open file descriptors and doesn't rely on its pid it may
work

> -- 
> Stephen Touset <stephen@touset.org>



Reply to: