Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2231831
  • 博文数量: 533
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7046
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(533)

文章存档

2024年(2)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: LINUX

2011-09-05 11:03:34




run="yes"
while [ "$run" == "yes" ]
        do
                pid=`/usr/bin/pgrep -fl '/usr/local/squid/sbin/squid -s' | /bin/awk '{print $1}'`
                if test -z "$pid"
                then
                        #mail to administrator
                        #$MailPath/mail.pl 1
                        #mail -s "6060 down" test@163.com
                        #sleep 10
                            #pgrep -f tomcat | xargs kill -9
                        /usr/local/squid/sbin/squid -s
                else
                        #echo CDR collect -- $pid ..
                        sleep 120
                fi
done

阅读(667) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~