diff options
| author | Bruno Ribas <brunoribas@gmail.com> | 2016-10-31 15:04:39 +0000 |
|---|---|---|
| committer | Bruno Ribas <brunoribas@gmail.com> | 2016-10-31 15:04:39 +0000 |
| commit | 82f4e8fcae75551a79f3463ad5e97186059ca98a (patch) | |
| tree | f1c2314c03cf08520fbff3b733253492c4eb4e96 /tools/boca-submit-run-cron | |
| parent | d74b515925ba838e87988edf510582dee4d5c80b (diff) | |
| download | boca-82f4e8fcae75551a79f3463ad5e97186059ca98a.tar.gz boca-82f4e8fcae75551a79f3463ad5e97186059ca98a.zip | |
tools/boca-submit-run{,-aux,-cron,-root}: Updated
Files updated to the last version used in Brazillian Regionals
Signed-off-by: Cassio de Campos <cassiopc@gmail.com>
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'tools/boca-submit-run-cron')
| -rwxr-xr-x | tools/boca-submit-run-cron | 16 |
1 files changed, 8 insertions, 8 deletions
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 |