那些事儿...lawrancejing.blog.chinaunix.net
jing494485758
全部博文(59)
apache FAQ(1)
sed(1)
awk(6)
2010年(59)
大鬼不动
Phyllis6
阿文闲聊
cyleishe
aspjava
showstro
汉尼拔勇
ReKym
yhdmy
hbjxzhan
分类:
2010-10-03 22:13:05
ping -c 10 sz.italk.com > /dev/null 2>&1core1=$?if [ $core1 -eq 0 ];thenping -c 10 sz.italk.com > SZmore SZ | sed -rn '$s#.*=.*/([^/]*)/.*#\1#p' > SZ_pingwget --output-file=SZ_download http://sz.italk.com/testspeed.rarrm -rf testspeed.rarmore SZ_download | sed -rn '/saved/s/.*\((.*)\).*/\1/p' > SZ_downelseecho "can not ping!!!" > SZ_pingecho "can not ping!!!" > SZ_downfiping -c 10 201.68.199.246 > /dev/null 2>&1core2=$?if [ $core2 -eq 0 ];thenping -c 10 201.68.199.246 > HKmore HK | sed -rn '$s#.*=.*/([^/]*)/.*#\1#p' > HK_pingwget --output-file=HK_download http://201.68.199.246/testspeed.rarrm -rf testspeed.rarmore HK_download | sed -rn '/saved/s/.*\((.*)\).*/\1/p' > HK_downelse echo "can not ping!!!" > HK_pingecho "can not ping!!!" > HK_downfiecho -e "SZ_ping:`more SZ_ping`\nHK_ping:`more HK_ping`\nSZ_down:`more SZ_down`\nHK_down:`more HK_down`" |mail -s "testspeed" test[at]italk.comrm -rf SZ* HK*
上一篇:系统没有mail命令,怎么办?
下一篇:分割字符串
登录 注册