added date before and after the job data transfer
-#!/usr/bin/env bash -x
+#!/bin/env bash -x
#
# MACRODIR
# MACROFILE
|| error "gate failed"
fi
+date
echo "Copying data back"
ssh -i ${HOME}/.ssh/ccin2p3 linux1.dg.creatis.insa-lyon.fr "mkdir cc/$(basename ${OUTPUTDIR})/output.${JOB_ID%%.*}"
rsync -av --remove-source-files -e "ssh -i ${HOME}/.ssh/ccin2p3" output/ "linux1.dg.creatis.insa-lyon.fr:./cc/$(basename ${OUTPUTDIR})/output.${JOB_ID%%.*}"
echo "Cleanup"
rm -r ${LOCALMACRODIR}
-
+date
echo "Success!!!"