time=1
while [ $time ]
do
adb wait-for-device
adb root
bash 1.sh >>~/bbb &
sleep 10m
s=$(ps aux |grep 'bash 1.sh' | sed -n 1p |cut -b 9-14)
kill $s
adb reboot
done
运行命令是bash 2.sh
time=1
while [ $time ]
do
adb wait-for-device
adb root
bash 1.sh >>~/bbb &
sleep 10m
s=$(ps aux |grep 'bash 1.sh' | sed -n 1p |cut -b 9-14)
kill $s
adb reboot
done