X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=cluster_tools%2Fgate_job_cluster.job;h=1ece1a611b0018daee535bf346a551ddc2121da4;hb=4473b8e7d52f8dc8caf56fe5e793298dd41f9111;hp=52540b214578efae945ee5aea151ac1ea01de5e5;hpb=c8bc5e0372efe6247d5c2fc7945d0ebc64de77ae;p=clitk.git diff --git a/cluster_tools/gate_job_cluster.job b/cluster_tools/gate_job_cluster.job index 52540b2..1ece1a6 100644 --- a/cluster_tools/gate_job_cluster.job +++ b/cluster_tools/gate_job_cluster.job @@ -12,9 +12,6 @@ #PBS -l walltime=100:00:00 #PBS -j oe -#env -#pwd -#exit 1 function error { @@ -65,6 +62,7 @@ test -d "${MACRODIR}" && test -d "${MACRODIR}/mac" || error "invalid macro" echo "Copying inputs" LOCALMACRODIR=$(mktemp -d) +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