Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Transferring a process to another shell
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zennehoy
n00b
n00b


Joined: 10 Nov 2002
Posts: 48

PostPosted: Fri Feb 06, 2004 2:31 pm    Post subject: Transferring a process to another shell Reply with quote

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
View user's profile Send private message
k9
Apprentice
Apprentice


Joined: 28 Sep 2003
Posts: 160
Location: Salt Lake City, USA

PostPosted: Fri Feb 06, 2004 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
alinv
Guru
Guru


Joined: 19 Nov 2002
Posts: 395
Location: Bucharest

PostPosted: Fri Feb 06, 2004 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum