unix - Calculate Sent and Received PING Packets at run-time in Linux -


i have calcuate sent , received ping packets @ run-time in linux. in linux, verbose, nothing gets printed if packets not received. prints successful replies, destination host unreachable.

how can sent , received packets seen @ run-time on terminal? method can accomplished?

the simplest solution - if want see sends , receives make source that. source ping command available , can edited make want.

that said, if don't want edit source, because doesn't suit, should use -c option, count of packets send, , use command send one @ time. return code command can used determine if packet seen, , can use (roughly) time command started @ origin time of packet.

bear in mind ping quite deterministic in it's behaviour. default, sends one packet per second, should able math based on how long runs , count of packets tried use.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -