How to hide "icmp_seq" from ping?
Posted: 2016/05/18 18:25:25
I am trying to setup my server to ping two computer with time stamp so I can check the ping stats later against any event... and since this ping request will be running for weeks I want to hide "icmp_seq" cuz it will grow to a very large number is few days. I tried searching the manual but found nothing helpful.... how will it be done?
so far I have been successful in catching the result of the ping though some bash scripting but I am not sure how to remove the particular part that I want to omit.
so far I have been successful in catching the result of the ping though some bash scripting but I am not sure how to remove the particular part that I want to omit.
Code: Select all
ping localhost | while read row; do echo $row ;done
ping localhost | while read row; do { echo "${row%: *}" ;} done