]> Creatis software - clitk.git/commitdiff
perturbation amplitude and params file on cluster
authorPierre Gueth <gueth@linux6.dg.creatis.insa-lyon.fr>
Tue, 31 Jan 2012 14:58:15 +0000 (15:58 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Jun 2013 12:44:46 +0000 (14:44 +0200)
cluster_tools/gate_run_submit_cluster.sh

index ab772dda0ff379ac9cf70a35e31ab4351327db24..513e644cea7a4a609d9cb4f8016dc61a0413aeef 100755 (executable)
@@ -45,6 +45,11 @@ test -z "${PARAM}" && echo "no param" || echo "param is ${PARAM}"
 echo "using release $(basename ${RELEASEDIR})"
 echo "submitting ${NJOBS} jobs"
 
+PARAMFILE="${OUTPUTDIR}/params.txt"
+echo "njobs = ${NJOBS}" >> "${PARAMFILE}"
+echo "macro = ${MACROFILE}" >> "${PARAMFILE}"
+test -z "${PARAM}" || echo "param = ${PARAM}" >> "${PARAMFILE}"
+
 while test $NJOBS -gt 0; do
        qsub -N "gatejob.${RUNID}" -o "${OUTPUTDIR}" \
        -v "PARAM=\"${PARAM}\",INDEX=${NJOBS},INDEXMAX=${NJOBSMAX},SCRIPTDIR=${SCRIPTDIR},OUTPUTDIR=${OUTPUTDIR},RELEASEDIR=${RELEASEDIR},MACROFILE=${MACROFILE},MACRODIR=${MACRODIR}" \