|
发表于 2006-11-17 13:46:18
|
显示全部楼层
Post by myepoch
ss=`ps -ef|awk -F'[ /]' '{print $NF}'`
if [ "$ss" = "$0" ]
then
echo "the process is running"|mail 邮箱
exit
elif [ $ss = "\$NF}" ]///////////这个位置提示错误啊。
then
nohup $0 &
exit
else
continue
fi
把提示错误的地方变成这样:elif [ $ss = "NF}" ]
有多个java程序就用多个判断。 |
|