TcpConversationUtils.java and Main.java: add support for counting packet pair frequen...
[pingpong.git] / automation / clicker.sh
1 #!/bin/bash
2
3 # This script does clicking action automatically
4 # We just need to set up the timer duration
5
6 # Loop variables
7 BEGIN=1
8 END=5
9 INC=1
10
11 # Range of random number (in seconds)
12 RAN_STA=2
13 RAN_END=6
14
15 for ((i=$BEGIN; i<=$END; i+=$INC));
16 do
17         # TP-Link switch
18         #./adb shell input tap 1002 913
19         date +%r
20         #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]
21         RAND=$[`jot -r 1 $RAN_STA $RAN_END`]
22         #echo "Delay: $RAND seconds"
23         sleep $[$RAND]s
24 done