shell - Stop android adb ping progamatically and print statistics -


i trying send ping x amount of seconds instead of amount of pings , gather results. notice if shell in , run "ping www.google.com" , stop ctrl + c not print statistics, if run "ping -c5 www.google.com" statistics print. there way send ping command, have time out after specified time, , print ping statistics?

note: sending programmatically java.

c:\users\field_test>adb shell shell@android:/ $ ping www.google.com ping www.google.com ping www.google.com (173.194.46.116) 56(84) bytes of data. 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=1 ttl=54 time =55.7 ms 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=2 ttl=54 time =70.9 ms 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=3 ttl=54 time =60.8 ms 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=4 ttl=54 time =71.1 ms 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=5 ttl=54 time =69.8 ms 64 bytes ord08s13-in-f20.1e100.net (173.194.46.116): icmp_seq=6 ttl=54 time =72.0 ms ^c 

nm, found it. "-w#" run specified time , print statistics.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -