国产探花免费观看_亚洲丰满少妇自慰呻吟_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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 旺苍县| 许昌县| 建始县| 浦县| 景谷| 吴旗县| 尼木县| 县级市| 紫金县| 衡南县| 叶城县| 土默特左旗| 富锦市| 崇礼县| 保定市| 丰县| 丘北县| 拉萨市| 和顺县| 扎赉特旗| 三明市| 武清区| 阿坝| 兰州市| 菏泽市| 博客| 田林县| 宕昌县| 龙门县| 沈阳市| 乌拉特前旗| 富顺县| 武定县| 大庆市| 仁布县| 长顺县| 邳州市| 唐山市| 嘉义市| 交城县| 马公市|