diff --git a/updateproxy.sh b/updateproxy.sh new file mode 100644 index 0000000..7569218 --- /dev/null +++ b/updateproxy.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +#Change proxy every DELAY seconds for MAX times +FILE=./toriptables2.py +COUNTER=0 +MAX=$1 # +DELAY=$2 + +#Check if arg was received +if [ -z "$2" ]; then + echo "USAGE: ./updateproxy.sh " + exit +fi + +while [ $COUNTER -lt $MAX ]; do + python $FILE -l + sleep $DELAY + let COUNTER=COUNTER+1 +done