shell script
pidfile="/usr/home/server/PIDfile"if test -r $pidfile
then
minPID=`cat $pidfile`
if `kill -CHLD $minPID >/dev/null 2>&1`
then
# it's still going
kill -9 $minPID
fi
fi
cc -g -o server -lm -lz server.c /usr/local/lib/mysql/libmysqlclient.a
/usr/local/bin/screen -L -S top9 ./server
exit 0
får denne fejl:
: not found
./restart: 18: Syntax error: end of file unexpected (expecting "then")
