[root@localhost opt]# cat web_url.sh #!/bin/bashfor i in `cat web_url`docurl=`curl -I -s $i |head -1|cut -d " " -f2`if [ "$curl" == "200" ];then ???echo curl $i is okelse ???echo "$i is fail" | mail -s "web fail url" ?yunwei@jiduo365.comfidone[root@localhost opt]# cat web_urlhttp://192.168.0.123:8080/lemon/portal/index.dohttp://192.168.0.123:8080/photo/
shell 监控url 地址
原文地址:http://blog.51cto.com/innocence/2152879