Update run

master
89wc 2023-09-05 06:16:19 +00:00
parent d3142cf60d
commit 50d089b7aa
1 changed files with 3 additions and 2 deletions

5
run
View File

@ -36,6 +36,7 @@ while [ $count -lt $lim ]; do
if [ $(echo "$url" | cut -d ' ' -f1) != "error" ]; then echo "POST IT"; $(./reply_post "$pid" "$url" > /dev/null); fi;
# The post id will not be incremented if there are five 404's in a row.
if [ $finishcount -gt 4 ]; then echo "finish counter: $finishcount"; sleep 60;
else echo $(( $pid + 1 )) > pid; count=$(( $count + 1 )); fi;
if [ $finishcount -lt 5 ]; then echo $(( $pid + 1 )) > pid; fi;
count=$(( $count + 1 ));
done;