[plug] Can I restart a suspended job on a remote machine from a different shell?
W.Kenworthy
billk at iinet.net.au
Fri Mar 18 15:16:07 WST 2005
I should have made it clearer - the job is suspended in a running
terminal on the remote machine itself so the file descriptors etc are
still there. I am hoping that the shell can be sent a signal by another
process to restart this job. Otherwise when I get home I'll just "fg"
it and it will start running again.
The shell session never stopped - software suspend does just that,
suspends the machine in its currently running state, saves the memory
off to disk and halts. You just restart the machine and reload the
image and you are back to where you were, all applications that were
running before shutdown are running again.
BillK
On Fri, 2005-03-18 at 15:11 -0500, rod wrote:
> Screen is the only way to achieve this afaik, because
> an application will usually die when it loses its file descriptors,
> and the moment the shell session which started the program stopped,
> its file descriptors also went away.
>
> screen creates a wrapped/fake set of files for the application, and
> can then change/ignore/whatever the real file descriptors on the
> application without it noticing... thusly the shell can go away, and
> screen will just buffer
>
> well thats my understanding of it anyway ... feel free to ignore.
>
>
> On Fri, 2005-03-18 at 14:07 +0800, W.Kenworthy wrote:
> Can I restart a suspended job on a remote machine from a different
> > shell?
> >
> > I left a job stopped with ctrl-z on a remote machine before swsusp'ing
> > it this morning. The machine has been restarted so I may as well log
> in
> > again and restart the suspended job (long compile), but how. If I had
> > thought ahead I would have run it in screen ...
>
More information about the plug
mailing list