LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sssh: how to keep service going when closing consol? (https://www.linuxquestions.org/questions/linux-networking-3/sssh-how-to-keep-service-going-when-closing-consol-509766/)

AZaraT 12-12-2006 12:50 PM

sssh: how to keep service going when closing consol?
 
Okay...

What I wonna do, is to remote start a server, with SSH, but the only problem is, that when I close the consol on the remote computer, it allso close the server. I know there is a way to keep the server up when the consol is closed, but I can't remember it.

Hope anyone can help me
AzaraT

Oh noes i'm dumb.. nevermind..

amitsharma_26 12-12-2006 01:01 PM

Code:

man nohup
.

johnson_steve 12-12-2006 01:34 PM

run it inside 'screen'

http://www.gnu.org/software/screen/

AZaraT 12-17-2006 10:11 AM

Hehe thanks for the answer and im sorry for not making a search..

johnson_steve 12-17-2006 11:42 AM

I'm glad to tell people about 'screen' it is a very useful program that I use on a daily basis and I'm not sure how I managed before I discovered it (wait yes I do; I had 5 monitors on my desk.) :)

dannyk1 12-18-2006 01:45 AM

you might just have to put the & symbol after the command.

eg.

command &

this will run the command as a daemon

routers 12-18-2006 06:54 AM

this way also migh work

ssh -f your host command port whatever follow by command sleep 365d

this will bring the work progress to background :)


All times are GMT -5. The time now is 07:53 PM.