diff options
| author | cassio <cassiopc@gmail.com> | 2015-08-30 22:11:57 +0000 |
|---|---|---|
| committer | cassio <cassiopc@gmail.com> | 2015-08-30 22:11:57 +0000 |
| commit | dd3152be0442e577692067c5523da4f5ab9d9957 (patch) | |
| tree | dd11e8e3bd71404dd7675b8bc8d49f3655a0df61 /tools/boca-submit-run-cron | |
| parent | 9a3077369831bc66fd51bc9c5c276980dd74e046 (diff) | |
| download | boca-dd3152be0442e577692067c5523da4f5ab9d9957.tar.gz boca-dd3152be0442e577692067c5523da4f5ab9d9957.zip | |
multiple bugs to make submission by command line
Diffstat (limited to 'tools/boca-submit-run-cron')
| -rwxr-xr-x | tools/boca-submit-run-cron | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/boca-submit-run-cron b/tools/boca-submit-run-cron index 83f5b41..64d55ee 100755 --- a/tools/boca-submit-run-cron +++ b/tools/boca-submit-run-cron @@ -15,6 +15,14 @@ if [ -d /root/submissions ]; then for i in `ls /root/submissions/*.bocarun`; do if [ "$i" != "/root/submissions/placeholder.bocarun" ]; then $runaux "$i" + res=$? + if [ "$res" == "2" ]; then + echo "$i: time-out - this will automatically retry soon" + fi + if [ "$res" == "0" ]; then + mv "$i" "${i}.processed" + fi fi done fi + |