Closing Putty but server keepts running
hello i'm running my moparscape server now on putty with gives me SSH connection and i'm wondering if there is a way that i could turn off my pc but the server would stil be running i can use logout command that doesnt work
|
If I understand it correctly, you have moparscape server machine to which you are connected via SSH protocol using putty client. And you want remotely shut this machine down. To do so, issue
Code:
halt |
where and when i need to enter it?
|
If you are connected to that server, just type halt and press enter.
Putty should provide you with terminal uppon connection. |
well i run the server i type halt and when i lcose the server goes offline or am i doing domething wrong?
|
Well, maybe I didnt understand what you want. I thought you want to swith the server (= moparscape machine) off. But by your confusion I see that is not the case. So can you be more specific what exactlu you want to turn off?
|
i want to turn off my pc and the server must still be running thats what i want
|
Hi,
Just type Code:
exit Kind regards, Eric |
Then I dont understand the problem. Server should be running regardless, whether you are connected via putty or not. What happens, when you log off of the server?
Or do you want to run some task on the server and keep it running even when logging off? |
Well, my error. I though that moparscape is some Linux distro, unknown to me. Shame on me.
Use Code:
nohup Code:
nohup your_program > file.out 2> err.out < /dev/null & |
Your question is somewhat vague but I assume you are starting the server via Putty and because you close the session moparscape quits running too. You can use nohup to keep an application from closing i.e.
nohup moparscape & (replace moparscape with the exact command used to start the server) |
Don't be ashamed, I was mislead by the OP's unclear description too.
Good call! Kind regards, Eric |
with that command the server doesnd even start
i'm using command sh sh.sh here's the inside of the sh file: Code:
#!/bin/sh |
hmm i get this
Code:
joomlascape:~# nohup sh sh.sh |
The problem is, that you want to run
Code:
sh sh.sh Code:
sh Code:
chmod +x sh.sh Code:
nohup sh.sh & |
All times are GMT -5. The time now is 11:34 PM. |