在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
复制代码 代码如下: #!/bin/bash #website test scripts while true;do for cycle_temp in `cat url_list` do if lynx -dump `echo ${cycle_temp}` -accept_all_cookies|grep "true";then echo "The website is running naturally" else echo "${cycle_temp} has been offline please attend it now!">/opt/test.txt mail -v -s "website down mail" [email protected] < /opt/test.txt fi done sleep 2s done |
请发表评论