From 9fd1b6b57748331f6fb851697564f415e9016f24 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 2 Jul 2013 23:21:56 +0200 Subject: [PATCH] Corrected cluster job to move current output before deleting the rest of the macro files --- cluster_tools/gate_job_cluster.job | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.1