]> Creatis software - clitk.git/commitdiff
Add -e output for qsub in gate_run_submit_cluster
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 8 Feb 2018 14:49:57 +0000 (15:49 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 8 Feb 2018 14:49:57 +0000 (15:49 +0100)
cluster_tools/gate_run_submit_cluster.sh
cluster_tools/gate_run_submit_cluster_nomove.sh

index 904a0d7162e2f12c664db4cec1e37efd16de5d4c..a74429a10f7525ac200e0d883bf23f39eec1807d 100755 (executable)
@@ -113,14 +113,15 @@ while test $NJOBS -gt 0; do
     then
         PROJECTGROUP=creatis
         qsub -o "${OUTPUTDIR}" \
-            -l sps=1 \
+             -e "${OUTPUTDIR}" \
+             -l sps=1 \
              -N "gate.${RUNID}" \
              -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}" \
-           "${JOBFILE}" || error "submission error"
+      -v "PARAM=${PARAM},INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \
+      "${JOBFILE}" || error "submission error"
     fi
 
     let NJOBS--
index 47ad6998ee05d5417db159e41bbccfc9ffdb15b2..c3eb2f0033964374ffc121487f4d7863435ba5ec 100755 (executable)
@@ -90,9 +90,9 @@ while test $NJOBS -gt 0; do
         echo "Launching Gate log in ${OUTPUTDIR}/gate_${NJOBS}.log"
         PARAM=\"${PARAM}\" INDEX=${NJOBS} INDEXMAX=${NJOBSMAX} OUTPUTDIR=${OUTPUTDIR}  RELEASEDIR=${RELEASEDIR} MACROFILE=${MACROFILE} MACRODIR=${MACRODIR} PBS_JOBID="local_${NJOBS}" bash "${JOBFILE}" > ${OUTPUTDIR}/gate_${NJOBS}.log &
     else
-       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"
+  qsub -N "gatejob.${RUNID}" -o "${OUTPUTDIR}" -e "${OUTPUTDIR}" \
+      -v "PARAM=${PARAM},INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \
+      "${JOBFILE}" || error "submission error"
     fi
 
     let NJOBS--