zoukankan
html css js c++ java
shell ping一个IP,延时大于5,输出延时大于5s,打印输出
# ping一个IP,延时大于5,输出延时大于5s,打印输出
#!/bin/bash
ip=$*
echo $ip
num=`ping -c 10 ${ip}|grep icmp_seq|awk '{print $7}'|cut -d= -f2`
for snum in $num
do
if [ `echo "${snum}>5"|bc` -eq 1 ];
then
echo "延时大于5s,现在为${snum}";
fi
done
贵有恒,何必三更起五更睡;最无益,只怕一日暴十寒
查看全文
相关阅读:
python
python中xrange和range的区别
python
shell用if
shell调用shell
An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll
C# 获取存在DataTable1不存在DataTable2的数据的快速方法
textbox自动提示
全面理解面向对象的 JavaScript(转载)
C#中文乱码转换
原文地址:https://www.cnblogs.com/rayong/p/6839808.html
最新文章
java游戏开发杂谈
java游戏开发杂谈
java游戏开发杂谈
java游戏开发杂谈
java游戏开发杂谈
查询所有表的字段
grails
SourceTree破解
socket
线程
热门文章
java面试
java集合对比
问佛 --仓央嘉措
多个数据源(multiple data sources)
上传文件(Uploading Files)
python split()黑魔法
python enumerate()用法
grep操作
Python Queue模块
[转载]python os.path模块
Copyright © 2011-2022 走看看