aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-submit-run
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2015-08-28 11:54:31 +0000
committercassio <cassiopc@gmail.com>2015-08-28 11:54:31 +0000
commitbe2798607fd15e8b116993a8d33d75b0a6ad0f50 (patch)
tree141fbb157ca2af73818e5cf5585e5a5a68c3deb6 /tools/boca-submit-run
parent56b10a617339563cda2c761e77b3acb96a1b084c (diff)
downloadboca-be2798607fd15e8b116993a8d33d75b0a6ad0f50.tar.gz
boca-be2798607fd15e8b116993a8d33d75b0a6ad0f50.zip
scripts for multiple submissions
Diffstat (limited to 'tools/boca-submit-run')
-rwxr-xr-xtools/boca-submit-run13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/boca-submit-run b/tools/boca-submit-run
index 87daeb8..0b42e9f 100755
--- a/tools/boca-submit-run
+++ b/tools/boca-submit-run
@@ -36,6 +36,15 @@ if [ "$1" == "" ]; then
exit 1
fi
+runaux=`which boca-submit-run-aux`
+if [ "$runaux" == "" ]; then
+ runaux=/var/www/boca/tools/boca-submit-run-aux
+fi
+runroot=`which boca-submit-run-root`
+if [ "$runroot" == "" ]; then
+ runroot=/var/www/boca/tools/boca-submit-run-root
+fi
+
if [ -r "$5" ]; then
nom=`echo -n "$5" | perl -MURI::Escape -lne 'print uri_escape($_)'`
for BOCASERVER in `echo $BOCASERVERS | cut -d';'`; do
@@ -47,10 +56,10 @@ if [ -r "$5" ]; then
echo -n "data=" >> $temp
uuencode -m zzzzzzzzzz < "$5" | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp
echo "" >> $temp
- boca-submit-run-aux $temp
+ $runaux $temp
if [ "$?" == "2" ]; then
echo "$BOCASERVER: time-out - this will automatically retry soon, you should not worry"
- boca-submit-run-root $temp
+ $runroot "$BOCASERVER" "$user" "$pass" "$nom" "$5"
fi
rm $temp
done