Moin,
ich habe folgendes Problem und zwar probiere ich gerade die Variablen, die man für Gameserver erstellen kann,
in das Startscript zu importieren. Nur leider funktioniert da gar nichts.
Startscript:
start.sh
Bash
#!/bin/bash
while test $# -gt 0; do
case "$1" in
"-IP")
IP="$2"
shift;;
"-PORT")
PORT="$2"
shift;;
"-PLAYER")
PLAYER="$2"
shift;;
"-RAM")
RAM="$2"
shift;;
"-TICK")
TICK="$2"
shift;;
esac
shift
done
echo "IP: $IP" >> "screenlog.0"
echo "Port: $PORT" >> "screenlog.0"
echo "Player: $PLAYER" >> "screenlog.0"
echo "Ram: $RAM" >> "screenlog.0"
echo "Tick: $TICK" >> "screenlog.0"
echo "PW: ${3}" >> "screenlog.0"
echo "PW: ${4}" >> "screenlog.0"
echo "PW: ${5}" >> "screenlog.0"
echo "PW: ${6}" >> "screenlog.0"
echo "PW: ${7}" >> "screenlog.0"
Alles anzeigen
Variable
Konsole