国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

linux shell腳本

2019-11-09 16:46:20
字體:
來源:轉載
供稿:網友
#!/bin/sh#cangread -p "input run times:" timesecho "times=$times"suc=0err=0tmp=""while [ "$tmp" == "" ];dotmp=$(adb shell logcat -d |grep "synccmd: aa 55 1e" |awk -F 'cmd: ' 'END{PRint $2}')done#echo "tmp=$tmp"fcang=$(echo "$tmp" |awk 'END{split($0,b," ");print b[13];}')fdong=$(echo "$tmp" |awk 'END{split($0,b," ");print b[14];}')fbian=$(echo "$tmp" |awk 'END{split($0,b," ");print b[15];}')ftmp=$(echo "$tmp" |awk 'END{split($0,b," ");print b[20];}')fzhineng=0fjiari=0fsudong=0fsuleng=0if [ "$[16#$ftmp&16#02]" == "02" ];thenfzhineng=1fiif [ "$[16#$ftmp&16#04]" == "04" ];thenfjiari=1fiif [ "$[16#$ftmp&16#08]" == "08" ];thenfsudong=1fiif [ "$[16#$ftmp&16#10]" == "10" ];thenfsuleng=1fiecho "$fcang $fdong $fbian $fzhineng $fjiari $fsudong $fsuleng"for loop in {0..10000};doif [ $loop == $times ];thenecho "break"breakficang=$[$RANDOM%9]cangtmp=$[560-$cang*35]dong=$[$RANDOM%9]dongtmp=$[560-$dong*35]bian=$[$RANDOM%24]biantmp=$[579-$bian*13]echo "cang=$cang,dong=$dong,bian=$bian"adb shell input swipe 448 "$cangtmp" 448 "$cangtmp" 10adb shell input swipe 808 "$dongtmp" 808 "$dongtmp" 10adb shell input swipe 630 "$biantmp" 630 "$biantmp" 10sleep 2sadb shell input swipe 450 150 450 150 10sleep 2sadb shell input swipe 450 150 450 150 10sleep 2sadb shell input swipe 450 150 450 150 10sleep 2sadb shell input swipe 450 150 450 150 10sleep 2sadb shell input swipe 450 150 450 150 10tmp=""while [ "$tmp" == "" ];dotmp=$(adb shell logcat -d |grep "synccmd: aa 55 1e" |awk -F 'cmd: ' 'END{print $2}')done#echo "tmp=$tmp"fcang=$(echo "$tmp" |awk 'END{split($0,b," ");print b[13];}')fdong=$(echo "$tmp" |awk 'END{split($0,b," ");print b[14];}')fbian=$(echo "$tmp" |awk 'END{split($0,b," ");print b[15];}')fcang=$[16#$fcang-2]fdong=$[16#$fdong-2]fbian=$[16#$fbian-3]if [ "$cang" == "$fcang" ] && [ "$dong" == "$fdong" ] && [ "$bian" == "$fbian" ];thensuc=$[$suc+1]#echo "suc=$suc"elseerr=$[$err+1]#echo "err=$err"fiecho "times=$times,suc=$suc,err=$err"done

echo "times=$times,suc=$suc,err=$err"

簡單版本:

#!/bin/shread -p "input run times:" timesecho "times=$times"for loop in {0..10000};doif [ $loop == $times ];thenecho "break"breakfiadb shell input tap 1100 352sleep 0.5adb shell input tap 165 727done

#!/bin/shread -p "input run times:" timesecho "times=$times"for loop in {0..100000};doif [ $loop == $times ];thenecho "break"breakfistime=$[$RANDOM%1001]*1000  stime表示微秒,這里代表從0-1秒之間取值echo "stime=$stime"adb shell input tap 968 96usleep stime  ——usleep代表微妙adb shell input tap 73 721done


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 崇义县| 闸北区| 竹山县| 大冶市| 临沭县| 习水县| 五大连池市| 怀宁县| 兴隆县| 甘洛县| 营口市| 方城县| 信宜市| 驻马店市| 海南省| 天峨县| 阳春市| 梧州市| 古田县| 乌兰浩特市| 辽阳县| 新兴县| 台东市| 大足县| 卓资县| 柳州市| 鹤峰县| 盐津县| 陵川县| 隆安县| 长垣县| 合川市| 荔浦县| 合肥市| 阜平县| 雷州市| 饶阳县| 慈利县| 海南省| 新田县| 长汀县|