如何知道远程的机器是否宕机
#!/bin/bash mail=2422606568@qq.com while true do ping -c 2 >/dev/null 2>&1 if [ $? -ne 0 ];then echo " |mail-s "ping baidu is down" $mail else echo "baidu is ok" fi; sleep 30 done
新闻标题:如何知道远程的机器是否宕机
链接分享:http://dtcuyxr.com/article/gphcjs.html


咨询
建站咨询
