Skip to content

Instantly share code, notes, and snippets.

@dalbothek
Created May 6, 2012 20:49
Show Gist options
  • Save dalbothek/2624333 to your computer and use it in GitHub Desktop.
Save dalbothek/2624333 to your computer and use it in GitHub Desktop.
Launching Minecraft with fifo pipe for command execution
#!/bin/sh
cd $(dirname ${0})
echo ${@} >> control
#!/bin/sh
cd $(dirname ${0})
rm -f control
mkfifo control
chmod g+rw,o-rw,u=rw control
exec 3<> control
java -Xmx1024M -Xms1024M -jar minecraft_server.jar <&3 2>&1 < control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment