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

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

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu