A server.sh script
Here is a simple .sh script i used to use when i ran a bukkit server in minecraft. This will bind to the directory the executable is in and work from there.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
./minetestserver --gameid minetest