Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I have turned on minecraft in my VPS via PuTTY.

screen sh minecraft.sh

How can I stop this process and how can I go there so that I can use all the commands?

I am very new to PuTTY and this.

share|improve this question
    
You could change the shell to RemoteToolKit, which uses Telnet. It would be easier to telnet to it. Also, stupid question, but you are using a Unix-based operating system, right? –  Jeffrey Lin Dec 2 '12 at 18:40
2  
While this question is on-topic here, you might have better luck getting a good answer on one of the other Stack Exchange sits (SuperUser, Unix and Linux, or Ubuntu if that's what you're using). Just don't double post. –  MBraedley Dec 2 '12 at 19:44
    
Thanks for the advise @MBraedley but my question is anwered! –  JochemQuery Dec 3 '12 at 18:01
add comment

1 Answer 1

up vote 2 down vote accepted

PuTTY, if I remember right, is basically an emulator for Unix terminals. In PuTTY, you have the screen command which is wrapping sh minecraft.sh.

Try getting the process id of the screen:

screen -ls

This should get you a list of running screens and their process IDs. Odds are one of them will have your minecraft shell.

Open that screen:

screen -r [screen PID]

and you'll be in the minecraft server console.

Now that you're in, you can use the minecraft server commands like stop to stop your server.

If you want to leave the screen but keep the server running, type CTRL-a CTRL-d to exit.

Hope that helps!

share|improve this answer
1  
If you are in the console, typing /stop would actually make the server interpret it as /stop because anything entered in console already has a / in front of it. –  Jeffrey Lin Dec 2 '12 at 21:15
    
@JeffreyLin You're right. Fixed. –  SevenSidedDie Dec 3 '12 at 3:54
    
Ah, whoops. Thanks. –  H4v0kh3l1 Dec 3 '12 at 17:07
    
Great amount of thanks! –  JochemQuery Dec 3 '12 at 18:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.