ich habe hier ein "run.sh" script das beim starten einen fehler bringt und zwar:
./run.sh
: command not found
: command not found
./run.sh: line 43: syntax error: unexpected end of file
Das script enthält:
Code: Alles auswählen
#/bin/bash
#----------------------------
# SETUP SOME ENVIRONMENT VARS
#----------------------------
if [ -z "$BF_STATS" ] ; then
BF_STATS=/home/scorpion/ap-teamwork/BFStats
fi
if [ -z "$JAVA_HOME" ] ; then
JAVA_HOME=/usr/lib/j2se/1.4
fi
# -------------------------------------------------------------------
# ENTER THE PATH TO YOUR STATISTICS.CSV FILE HERE (MUST BE FULL PATH)
# -------------------------------------------------------------------
INPUT=/home/scorpion/games/bf1942/mods/bf1942/logs/statistics.csv
# ---------------------------------------------------------
# THIS WILL BE THE DIRECTORY WHERE THE HTML FILE IS CREATED
# ---------------------------------------------------------
OUTDIR=$BF_STATS/www
# -------------------------------------------------
# THIS IS THE TEMPLATE USED TO CREATE THE HTML FILE
# -------------------------------------------------
TEMPLATE=$BF_STATS/template/statistic.template
# --------------------------------------------------
# THIS IS THE MAXIMUM MEMORY USED. INCREASE THIS IF
# YOU GET "OUT OF MEMORY" ERRORS.
# --------------------------------------------------
MEMORY=64m
# -------------------------------------------------------
# DON'T CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING!!!
# -------------------------------------------------------
$JAVA_HOME/bin/java -Xmx$MEMORY -jar $BF_STATS/lib/bfstats.jar -i $INPUT -o $OUTDIR -t $TEMPLATE
line 43 = nichts ?!?
Kann mir jemand sagen woran es liegt?
Chmod wurde gesetzt, exit 0 oder ein "\" am ende bringt nichts.
OS: Debian woody
java version "1.4.1"