@ -137,12 +137,12 @@ watchcat_monitor_network() {
for host in $ping_hosts ; do
for host in $ping_hosts ; do
if [ " $iface " != "" ] ; then
if [ " $iface " != "" ] ; then
ping_result = " $(
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 $?
echo $?
) "
) "
else
else
ping_result = " $(
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 $?
echo $?
) "
) "
fi
fi
@ -218,12 +218,12 @@ watchcat_ping() {
for host in $ping_hosts ; do
for host in $ping_hosts ; do
if [ " $iface " != "" ] ; then
if [ " $iface " != "" ] ; then
ping_result = " $(
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 $?
echo $?
) "
) "
else
else
ping_result = " $(
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 $?
echo $?
) "
) "
fi
fi