I am using command like
timeout 10 ping 188.8.131.52 | tail -2.
Here I am getting output as
Terminated. But I need the last two lines of
Can any one please tell what to do
I have to use
timeout 10 ping 184.108.40.206 &>out.txt and
cat out.txt | tail -2 would give the last two lines of
You have found an answer, but you could also try
ping -w10 220.127.116.11
This tells ping to keep pinging for 10 seconds, then to stop.