shell脚本_循环_if判断
摘要:
#!/bin/bashwhile :do ping_cmd1=`ping -w 4 192.168.56.13 |grep packet |awk -F ", " '{print $4}'` ping_cmd2=`ping -w 4 220.196.42.124 |grep packet |awk -F ", " '{print $4}'`# date >>/usr/local/webserver/nginx/logs/networkerror.log if [ "$ping_cmd1" = 阅读全文
posted @ 2011-03-20 14:20 晓风残梦 阅读(1787) 评论(0) 推荐(0) 编辑