command line - Ping multiple IP's at the same time - Ask Ubuntu


i have file "temp2" example 200 ip's.

i want ping synchronously , save ping statistics file.

num=100 in $(seq 1 $num) read b        ping -s 100 -c 100 -i 1 $b | grep -eo '([0-9]{1,10}) received.*([0-9]{1,3})% packet loss' & done < temp2 wait echo "all done" 

this script starts ping in background 100 ip's, understood.

how can write ping statistics file when ping done?


Comments

Popular posts from this blog

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User