for host in $ping_hosts; do
if [ "$iface" != "" ]; then
ping_result="$(
- ping "$ping_family" -I "$iface" -s "$ping_size" -c 1 "$host" &> /dev/null
+ ping $ping_family -I "$iface" -s "$ping_size" -c 1 "$host" &> /dev/null
echo $?
)"
else
ping_result="$(
- ping "$ping_family" -s "$ping_size" -c 1 "$host" &> /dev/null
+ ping $ping_family -s "$ping_size" -c 1 "$host" &> /dev/null
echo $?
)"
fi
for host in $ping_hosts; do
if [ "$iface" != "" ]; then
ping_result="$(
- ping "$ping_family" -I "$iface" -s "$ping_size" -c 1 "$host" &> /dev/null
+ ping $ping_family -I "$iface" -s "$ping_size" -c 1 "$host" &> /dev/null
echo $?
)"
else
ping_result="$(
- ping "$ping_family" -s "$ping_size" -c 1 "$host" &> /dev/null
+ ping $ping_family -s "$ping_size" -c 1 "$host" &> /dev/null
echo $?
)"
fi