-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrunChain
More file actions
executable file
·25 lines (20 loc) · 782 Bytes
/
runChain
File metadata and controls
executable file
·25 lines (20 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
DATE=$(date +"%T")
URLFILE="datasets/URLs.txt"
INCREMENT=10
ITERATIONS=3
START=0
RESULTS="Logs/results-Chains-$DATE.txt"
ERROR="Logs/error-results-Chains-$DATE.txt"
let END=$INCREMENT*$ITERATIONS+$START
let ADJUSTEDITER=$ITERATIONS-1
echo "Running Campaign in increments of $INCREMENT" | tee -a $RESULTS
echo "" | tee -a $RESULTS
for BATCH in `seq 0 $ADJUSTEDITER`; do
let LOCALSTART=$INCREMENT*$BATCH+$START
echo "Currently running batch starting at $LOCALSTART" | tee -a $RESULTS
# ./chains.py -batch $URLFILE $LOCALSTART $INCREMENT 2>$ERROR | tee -a $RESULTS
./chains.py -batch $URLFILE $LOCALSTART $INCREMENT -skipcomments 2>$ERROR | tee -a $RESULTS
echo "" | tee -a $RESULTS
done
echo "Ran from $START to $END on $URLFILE" | tee -a $RESULTS