Game Development Community

Prevent a background process from being stopped after closing SSH client:

by CloudFire · in Torque Developer Network · 04/16/2010 (4:52 am) · 3 replies

Hi All

I am running a dedicated server (GoDaddy) in remote linux machine.

I am connecting and exec the server program through SSH (terminal) from my machine.

when i close the terminal the server connection was lost.

Once again i have to open the terminal and then i have to exec through SSH.

i have a given a command

./0_Login.sh &

but when i close the terminal the connection was also lost and the background process was also lost. .

I have to prevent a background process from being stopped after closing SSH client.

the .sh file should constantly run after SSH client is closed.

how can i do that.



#1
05/05/2010 (11:17 pm)
Hi All

I heard is an Daemon Process. Could any one help me to set up the Daemon Process in linux.
#2
05/06/2010 (6:47 am)
You want to install "screen". Then you run it, get a shell and run the program from there. Ctrl-a,ctrl-d to push the screen into the background, "screen -r" to recover the session. This is the simplest method for beginners :)
#3
05/07/2010 (3:04 am)
@Ronny Bangsund

Thank you for your Help. I have finished. It is working. Thank you.