sh脚本小记
#!/bin/bash
while true;do
sleep 5;
echo 5;
if [ "$(ps -ef|grep jobtracker|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')" == "" ]
then
sh /data/local2/jobtracker/bin/jobtracker.sh zoo start
fi
done
nohup ./test > myout.txt 2>&1 &