摘要: 编写脚本 #!/bin/sh echo $$ >/var/log/network.pid n=0while true;do tcpdumpid=`ps aux |grep tcpdump|awk '/^tcpdump/{print $2}'` curl www.baidu.com &> /dev/n 阅读全文
posted @ 2018-04-28 17:42 Me-lihu 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash n=1 while true;do tcpdumpid=`ps aux | grep tcpdump | awk '/^tcpdump/{print $2}'` curl 172.30.3.198:6011 &>/dev/null if [ $? -ne 0 ];then e 阅读全文
posted @ 2018-04-28 10:19 Me-lihu 阅读(6) 评论(0) 推荐(0) 编辑