Posts by user55010 • 1 point
1 post
-
-2
votes2
answers289
viewsQ: How to check if ip latency is greater than 0?
Code: if [ 'ping $1 -c1 |grep rtt |awk {'print$4'} |awk -F "/" {'print$2'}' -gt 0 ] then echo "OK" else echo "NO OK" fi Error: ./latencia.sh: line 1: [: ping $1 -C1 |grep rtt |awk {print} |awk -F…
shell-scriptasked user55010 1