X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fscripts%2Fcrontab.sh;h=06cb81654aaa69600992ee60a636ee291be370be;hb=72a91e9bdd1a8c1a3f12522ec9acec4f53afe345;hp=b3528cee6d3f811c702bd9f91f1b07f59af7b181;hpb=18ae90dba18e6abf64b89a8cd0e367ec2b558f3b;p=helm.git diff --git a/matita/scripts/crontab.sh b/matita/scripts/crontab.sh index b3528cee6..06cb81654 100644 --- a/matita/scripts/crontab.sh +++ b/matita/scripts/crontab.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -x +#set -x #configuration TODAY=`date +%Y%m%d` @@ -15,7 +15,7 @@ SQLQMARK="select distinct mark from bench where mark like '%s%%' order by mark;" SQLQTIME="select SUM(timeuser) from bench where mark = '%s' group by mark;" SQLQFAILCOUNT="select count(distinct test) from bench where mark = '%s' and result = 'fail';" SQLQFAIL="select distinct test from bench where mark = '%s' and result = 'fail';" -URL="http://mowgli.cs.unibo.it/~tassi/bench.php" +URL="http://mowgli.cs.unibo.it/~sacerdot/bench.php" #initialization OLD=$PWD @@ -65,15 +65,15 @@ fi if [ "$DELTA" -lt 0 ]; then PERC=0 else - PREC=`lua50 scripts/functions.lua proportion $DELTA x $OLD_TIME 100` + PERC=`lua5.1 scripts/functions.lua proportion $DELTA x $OLD_TIME 100` fi if [ "$PERC" -ge 5 ]; then cat < $TMP1 + printf "$SQLQFAIL" "$LASTMARK" | $MYSQL > $TMP2 + combine $TMP1 not $TMP2 > $TMP3 + cat <