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

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

linux shell腳本

2019-11-09 15:35:26
字體:
來源:轉載
供稿:網友
#!/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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 太湖县| 柳江县| 海兴县| 老河口市| 杂多县| 大理市| 柳州市| 霸州市| 上犹县| 牟定县| 静安区| 盖州市| 涞源县| 汽车| 通道| 拜城县| 子洲县| 吉首市| 海城市| 历史| 古田县| 达日县| 盐边县| 广昌县| 毕节市| 浦东新区| 曲麻莱县| 安新县| 湖口县| 图木舒克市| 定南县| 利川市| 郑州市| 阳高县| 聂拉木县| 东乌| 三台县| 城市| 闸北区| 钟祥市| 龙陵县|