Help Needed with putty session
Hi all
I am a linux noob ( certainly lol) but i am rapidly learning. Basically myself and a few friends rented a Linux box, mainly just to play counter strike on. As our requirements are low we only needed one linux server ( cost mainly). Now, im learning linux but this is my prob I can logon to the box using putty, no probs, i can install the game of my choice no probs. However i have to leave putty running in order for the server to stay active. If i close putty, the game quits. I have read however that there is a nohup command and some other stuff that i can try in order to close putty but leave processe running on the box. This is what i feel i need. Is there anyone who can help me with this. These commands are new and somewhat alien to me. Ive tried with what i can find but to no avail. Many thanks in advance Damoh |
you can use
Code:
nohup command |
Hi, and welcome to LQ!
As for nohup - did you *try* that? What happened? How did you invoke the game you started? Cheers, Tink |
Quote:
|
Quote:
|
Quote:
|
Quote:
hi ./srcds_run -console -game cstrike +map de_dust -maxplayers 24 -autoupdate that is the command i use to start the game. I navigate to my home dir then to my game dir, run that command and all is good. Hope that helps Regards |
Have you tried the nohup command? Does it work?
Code:
nohup ./srcds_run -console -game cstrike +map de_dust -maxplayers 24 -autoupdate & |
Quote:
nohup ./srcds_run -console -game cstrike +map de_dust -maxplayers 24 -autoupdate & [5] 30527 [root@host-95-154-194-34 css]# nohup: appending output to `nohup.out' Thats what i get mate, then it just hangs. |
Hangs? That is the normal output: it means that the standard output and the standard error are sent to the file nohup.out to check them later. Have you pressed "Enter" after that message appeared? You should return to the command prompt.
|
Ah!, i restarted it again and checked it worked!!, i assumed it hadnt because usually when the server starts it scrolls text about the point the server is at whilst starting. Now, i closed putty and it is still up woo hoo, now i just need to figure out how to stop the server lol
|
Quote:
Quote:
|
All times are GMT -5. The time now is 01:04 PM. |