]> Creatis software - clitk.git/commitdiff
Fix for parameters passed to Gate
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 8 Jul 2014 14:34:58 +0000 (16:34 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 8 Jul 2014 14:34:58 +0000 (16:34 +0200)
cluster_tools/gate_run_submit_cluster.sh

index 24fdab92e04d4408917ee8e98a9ede280753dc0d..8858c68780d89832a7720f56700205bb58c93207 100755 (executable)
@@ -19,6 +19,7 @@ function usage {
     echo "${SCRIPTNAME} mac/main.mac njobs releasesuffix paramtogate"
     echo "default njobs = ${DEFAULTNUMBEROFJOBS}"
     echo "default releasesuffix = ${DEFAULTRELEASESUFFIX} (NONE means use Gate in PATH)"
+    echo "default paramtogate = \"\" (use \"\" around params and \\ in front of commas)"
 }
 # -------------------------------------------------
 
@@ -107,8 +108,8 @@ while test $NJOBS -gt 0; do
              -v "PARAM=\"${PARAM}\",INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \
              "${JOBFILE}" || error "submission error"
     else
-        qsub -N "gatejob.${RUNID}" -o "${OUTPUTDIR}" \
-           -v "PARAM=\"${PARAM}\",INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \
+       qsub -N "gatejob.${RUNID}" -o "${OUTPUTDIR}" \
+           -v "PARAM=${PARAM},INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \
            "${JOBFILE}" || error "submission error"
     fi