ping-from-host.sh 432 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
# script for repeated pings interleaved with <x> seconds

touch ../Documents/claudio-openleon-transports-experiments/ping-distr-datacenters/$1
ping 10.16.0.2 -c 5 | tail -n 1 > ../Documents/claudio-openleon-transports-experiments/ping-distr-datacenters/$1

for ((i=1; i<=49; i++ )) do
    ping 10.16.0.2 -c 5 | tail -n 1 >> ../Documents/claudio-openleon-transports-experiments/ping-distr-datacenters/$1
    sleep 4
done