
As always, be sure to read up on it so you understand it well enough, but it's what I've been using to manage my Minecraft server instances over ssh for years now with very little extra hassle. If you disconnect from the instance (you press ctrl+a, then press d) or close out of the ssh shell, you can reconnect by runningĪnd you'll be good to go. If any other of your scripts make changes to the same method, you will have to change them by yourself (or. Or whatever your script's name/extension is, then it'll clear the screen and spawn a new, detachable terminal instance you can disconnect from and reconnect to at will. Warning: This script changes SceneManagerrun. Use the screen command (not shell command) chdir to change directories, then open a new shell and it will start in that directory that other guy at 20:44 1 Well - it changes directories, but it changes the directory of the new shell you started with the bash command, not the directory of the shell/program that ran it. screen -s minecraft /path/to/the/start.sh. the second was that you don't need the -X flag, and you can just use. what i did was see the -X flag and made 2 mistakes the first was to use lowercase x not an uppercase X.
#Screenie start script install
The solution I've found to be easiest is using screen, which you can install through any default package manager for the most part. X ExecuteYou open a separate terminal instance in which your commands are run, and when you close out ssh, the terminal is closed as is everything spawned in it. Is there a way I can keep my server open without having command prompt open all the time? That way the server will restart on /stop.
