aboutsummaryrefslogtreecommitdiff
path: root/wrapper.sh
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-02-03 11:13:44 -0500
committerB Stack <bgstack15@gmail.com>2020-02-03 11:13:44 -0500
commitb056c0f6d7099251ef1015783b55354636117fc3 (patch)
tree8a8bdd7567081b095e360fc4b42c3dc5bc4f37eb /wrapper.sh
parentinitial commit (diff)
downloadvooblystats-b056c0f6d7099251ef1015783b55354636117fc3.tar.gz
vooblystats-b056c0f6d7099251ef1015783b55354636117fc3.tar.bz2
vooblystats-b056c0f6d7099251ef1015783b55354636117fc3.zip
add python version, and some example wrapper scripts
Diffstat (limited to 'wrapper.sh')
-rwxr-xr-xwrapper.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/wrapper.sh b/wrapper.sh
new file mode 100755
index 0000000..abdfc1c
--- /dev/null
+++ b/wrapper.sh
@@ -0,0 +1,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