]> Creatis software - clitk.git/commitdiff
Corrected cluster job to move current output before deleting the rest of
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 2 Jul 2013 21:21:56 +0000 (23:21 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 2 Jul 2013 21:21:56 +0000 (23:21 +0200)
the macro files

cluster_tools/gate_job_cluster.job

index 6b893b11395af8acad335a094e6d9f3b4557534e..1242dfd06fd9ecb32e4fd9c20345f225b8d35354 100644 (file)
@@ -65,7 +65,7 @@ test -d "${MACRODIR}" && test -d "${MACRODIR}/mac" || error "invalid macro"
 
 echo "Copying inputs"
 LOCALMACRODIR=$(mktemp -d)
-trap "rm -rf ${LOCALMACRODIR} ; exit 1" 1 2 3 15
+trap "mv output ${OUTPUTDIR}/output.${PBS_JOBID%%.*} ; rm -r ${LOCALMACRODIR} ; exit 1" 1 2 3 15
 cd ${LOCALMACRODIR}
 cp -r -L "${MACRODIR}"/{data,mac} .
 mkdir output