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

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User