ideaNum=`ps -ef | grep idea | awk '{print $2}' | wc -l`
flag=2
if [ $ideaNum -lt $flag ];then
nohup sh /home/wangjun/software/idea-IU-135.909/bin/idea.sh >/dev/null 2>&1 &
echo "啓動idea..."
sleep 2
fi
firefoxNum=`ps -ef | grep firefox | awk '{print $2}' | wc -l`
if [ $firefoxNum -lt $flag ];then
nohup firefox >/dev/null 2>&1 &
echo "啓動firefox..."
sleep 2
fi
thunderbirdNum=`ps -ef | grep thunderbird | awk '{print $2}' | wc -l`
if [ $thunderbirdNum -lt $flag ];then
nohup thunderbird >/dev/null 2>&1 &
echo "啓動email..."
sleep 2
fi
tm2013Num=`ps -ef | grep tm2013 | awk '{print $2}' | wc -l`
if [ $tm2013Num -lt $flag ];then
nohup tm2013 >/dev/null 2>&1 &
echo "啓動qq..."
sleep 2
fi