LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Quick process control question (https://www.linuxquestions.org/questions/linux-newbie-8/quick-process-control-question-159448/)

gauge73 03-18-2004 11:53 AM

Quick process control question
 
I run a text-based gnutella client on my Linux server at home, and I use SSH to control this from elsewhere. However, I cannot get the process to continue running when I close SSH. Is there any way that I can do the following?

1) Log into SSH
2) Somehow gain control of the gnutella client process
3) Somehow put the gnutella client process in the background
4) Log off SSH without closing the gnutella client

I've had nohup suggested to me, but it doesn't output to the terminal, so I can't easily use the interface. Clearly, I can't just use bg to put the client in the background and then log off. Is there any way to accomplish what I'm trying to do?

kernel_mustard 03-18-2004 12:34 PM

most definately there is

install screen,
http://www.guckes.net/screen/
run like screen -A -m -d -S <gnutella client>
then when you want to view what is going on in that session, type screen -r
to detach it from the screen again, hit ctrl-a, followed by d

more details in the man file.

this is what i use to detach my counter-strike server from my ssh session, then close the ssh connection.

tvn 03-18-2004 12:37 PM

would screen do it ?


All times are GMT -5. The time now is 10:21 AM.