View previous topic :: View next topic |
Author |
Message |
zennehoy n00b
Joined: 10 Nov 2002 Posts: 48
|
Posted: Fri Feb 06, 2004 2:31 pm Post subject: Transferring a process to another shell |
|
|
Say I'm running a process happily in a shell, when all of a sudden, the shell stops responding - even though the process is till running happily in the background.
Is there some way I can start a new shell and "take over" the process from the crashed one? Basically I ssh'ed into a remote computer and the local shell crashed, while the process is still running happily on the remote computer.
Thanks for the help, as always!
Zen |
|
Back to top |
|
|
k9 Apprentice
Joined: 28 Sep 2003 Posts: 160 Location: Salt Lake City, USA
|
Posted: Fri Feb 06, 2004 2:47 pm Post subject: |
|
|
I think your best bet on doing something like this would be to use a little program called "screen". Search about it on this forum or on google to learn more about how it works. screen lets you disconnect from a shell and then reconnect up to it later (ie you can ssh into a machine and use screen. Then you can disconnect from the machine, open up a console locally on the machine you ssh'd into, and connect up to the shell that you were running remotely). |
|
Back to top |
|
|
alinv Guru
Joined: 19 Nov 2002 Posts: 395 Location: Bucharest
|
Posted: Fri Feb 06, 2004 9:40 pm Post subject: |
|
|
I'd go for screen, too.
Also, have a look at nohup which can run a process detached from the console and tty independent
Alin _________________ Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.
S.B. |
|
Back to top |
|
|
|