From: Simon Rit Date: Tue, 2 Jul 2013 21:21:56 +0000 (+0200) Subject: Corrected cluster job to move current output before deleting the rest of X-Git-Tag: v1.4.0~169^2~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9fd1b6b57748331f6fb851697564f415e9016f24;p=clitk.git Corrected cluster job to move current output before deleting the rest of the macro files --- diff --git a/cluster_tools/gate_job_cluster.job b/cluster_tools/gate_job_cluster.job index 6b893b1..1242dfd 100644 --- a/cluster_tools/gate_job_cluster.job +++ b/cluster_tools/gate_job_cluster.job @@ -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