aboutsummaryrefslogtreecommitdiff
path: root/wrapper.sh
blob: abdfc1c6a3b45e83c2f20e2f3c4689dfcf7970cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OUTDIR=~/dev/vooblystats/files
mkdir -p "${OUTDIR}"

# 18 games per minute, approximately
# cover this sequence 19871439 21184314

# need to fork vooblystats.sh 152 times!

startgameid=19871439
endgameid=21184314
span=8640 # games per 8 hours
x=0
count=152

while test $x -lt $count ;
do
   x=$(( x + 1 ))
   startx="$( printf "%s\n" "${startgameid}+(${x}*${span})" | bc )"
   endx="$(   printf "%s\n" "${startgameid}+(${x}*${span})+${span}-1" | bc )"
   echo "call VS_COOKIEFILE=\$(mktemp) vooblystats.sh ${startx} ${endx} > ${OUTDIR}/gameset-${x}.csv"
   #VS_COOKIEFILE="$(mktemp)" ~/dev/vooblystats/vooblystats.sh ${startx} ${endx} > ${OUTDIR}/gameset-${x}.csv &
done
bgstack15