From b056c0f6d7099251ef1015783b55354636117fc3 Mon Sep 17 00:00:00 2001 From: B Stack Date: Mon, 3 Feb 2020 11:13:44 -0500 Subject: add python version, and some example wrapper scripts --- wrapper.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 wrapper.sh (limited to 'wrapper.sh') 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 -- cgit