Quote:
Originally Posted by zhjim
I don't really know fping and when it returns. Else got with something like this
|
I did the second part by ping to check:
for i in {1..24}
do
ping -c 1 192.168.40.$i > /home/farid/spt/2
ret=$?
if [ $ret -eq 0 ];then
exit 0
fi
done
when I run it, It doesn't do any thing, and when I press Ctrl+c, It isn't stopped!