linux执行脚本报错
代码
#!/bin/sh
# tries to determine arguments to launch AOI-SERVER
PID=`ps aux | grep cmppserver | grep -v grep | grep -v "start.sh" | awk '{print $2}'`
#echo PID=$PID.
if [ "" = "$PID" ] ; then
echo " CMPPSERVER isn't running."
exit 1
else
kill -9 $PID
echo " CMPPSERVER(pid:$PID) be killed."
exit 0
fi
报错
: command not found
stop2.sh: line 14: syntax error: unexpected end of file