#!/bin/bash
path=~/Desktop/fwlog
sudo mkdir -p $path
while (true)
do
for i in `seq 123 123`
do
ping -c 1 192.168.10.$i > /dev/null
if [ $? -eq 0 ]
then
echo "192.168.10.$i"
echo "----" >> ./$i.log
else
`killall -9 innovusion_lidar*`
echo "kill innovuson_lidar"
fi
done
sleep 10
done
04-11
7864
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)