burim:bash:ping

https://stackoverflow.com/questions/6118948/bash-loop-ping-successful

  • latency
[ $(ping -c1 1.1.1.1 | awk 'FNR == 2 { print $(NF-1) }' | cut -d'=' -f2 | cut -d'.' -f1) -gt 100 ] && echo "GT 100" || echo "LT 100"
burim/bash/ping.txt · Last modified: 2021/01/01 11:16 by burim

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki