Someone who understands terminal better than me...

Associate
Joined
21 Oct 2008
Posts
1,679
Location
Mooching... in your house
Right, I have a q:

I play minecraft (hurray!) and I run the server on my work computer since its always on so I can just ssh in and start it up...

but... since running the server is a command line application, once I exit the ssh connection, it doesn't seem possible to get back to where I was before to shut the server down (once you start it up, it initiates everything and then gives you a rolling log) but upon sshing back in, its just the standard home directory and I don't know how to make it show me what the minecraft server app is up to...

Does the question make sense? any ideas?

EDIT:

Just incase I didn't make much sense... when you run it through ssh (or indeed just through the terminal command line locally) it looks like this:

20110407-gebrmn56x68u663ufg1cmnry6u.png


Then proceeds to update you on things people are saying, people logging in and out etc...

So once I log out of ssh, how would I get back to this at a later time?
 
Last edited:
Yup, run the server in a screen session.

Start a session:
$ screen

Run the server, when you're finished, detach:
<ctrl-a d>

SSH back into the server, re-attach to the screen session:
$ screen -x
 
You could just redirect standard out and standard error to a log file then tail that when you re-login.

command-to-run 1>/directory/logfile.log 2>&1
 
Back
Top Bottom