From 82f4e8fcae75551a79f3463ad5e97186059ca98a Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Mon, 31 Oct 2016 13:04:39 -0200 Subject: tools/boca-submit-run{,-aux,-cron,-root}: Updated Files updated to the last version used in Brazillian Regionals Signed-off-by: Cassio de Campos Signed-off-by: Bruno Ribas --- tools/boca-submit-run-cron | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tools/boca-submit-run-cron') diff --git a/tools/boca-submit-run-cron b/tools/boca-submit-run-cron index 64d55ee..81ff6a2 100755 --- a/tools/boca-submit-run-cron +++ b/tools/boca-submit-run-cron @@ -6,23 +6,23 @@ if [ "`id -u`" != "0" ]; then fi if [ -d /root/submissions ]; then - touch /root/submissions/placeholder.bocarun - runaux=`which boca-submit-run-aux` - if [ "$runaux" == "" ]; then - runaux=/var/www/boca/tools/boca-submit-run-aux - fi - + touch /root/submissions/placeholder.bocarun + runaux=/usr/bin/boca-submit-run-aux + if [ ! -f "$runaux" ]; then + echo "Error: could not find aux script" + else for i in `ls /root/submissions/*.bocarun`; do if [ "$i" != "/root/submissions/placeholder.bocarun" ]; then - $runaux "$i" + $runaux "$i" > ${i}.result res=$? if [ "$res" == "2" ]; then - echo "$i: time-out - this will automatically retry soon" + echo "time-out - this will automatically retry soon" > ${i}.result fi if [ "$res" == "0" ]; then mv "$i" "${i}.processed" fi fi done + fi fi -- cgit v1.2.3