缘由是在windows是dos格式, 须要把文件转成unix格式 shell
用EditPlus工具, Document, 菜单FileFormat,changeFileFormat,转为Unix格式就ok! windows
# Wait until the background process exits
WAIT_STATUS=128
while [ "$WAIT_STATUS" -ge 128 ]; do
wait $SHARP_PID 2>/dev/null
WAIT_STATUS=$?
if [ "$WAIT_STATUS" -gt 128 ]; then
SIGNAL=`expr $WAIT_STATUS - 128`
SIGNAL_NAME=`kill -l $SIGNAL`
fi
done 工具
//直到接受到退出指令shell才退出
unix