#!/bin/bash
for ((i=1;i<=254;i++)); do
IP=193.60.61.$i
echo -n $IP,
RESULT=`ping -n -c 2 $IP | grep 'time=' | awk '{print $7}' | sed '/^time=*/!d; s///;q'`
if [ $RESULT -eq $RESULT 2> /dev/null ]; then
echo 9999
else
echo $RESULT
fi
sleep 1
done
There are no comments on this page. [Add comment]