diff --git a/Templates/jobscript.template b/Templates/jobscript.template index d83deb3c3b9e54f5b8a2ebee4050fa544bf7237e..8c11a1e3e4da70d67bf2e1095016791229b0466c 120000 --- a/Templates/jobscript.template +++ b/Templates/jobscript.template @@ -1 +1 @@ -jobscript.template.reading \ No newline at end of file +jobscript.template.bologna \ No newline at end of file diff --git a/Templates/jobscript.template.bologna b/Templates/jobscript.template.bologna index 8e613371ab5084b72f2238e64337df5b54a52833..7635befaf24ad2ec65d6b82f638acc3a9643f50d 100644 --- a/Templates/jobscript.template.bologna +++ b/Templates/jobscript.template.bologna @@ -1,16 +1,15 @@ -#!/bin/ksh +#!/bin/bash # ON ECS or HPC: # start with ecaccess-job-submit -queueName <QUEUE_NAME> <NAME_OF_THIS_FILE> on gateway server # start with srun <NAME_OF_THIS_FILE> directly on machine -#SBATCH --chdir=$$$$SCRATCH +#SBATCH --chdir=/scratch/$username #SBATCH --qos=el #SBATCH --job-name=flex_extract #SBATCH --output=flex_extract.%j.out -#SBATCH --error=flex_error.%j.out +#SBATCH --error=flex_extract.%j.out #SBATCH --mail-type=FAIL -#SBATCH --mail-user=$username #SBATCH --time=24:00:00 ## CRAY specific batch requests @@ -61,6 +60,7 @@ if [ $? -eq 0 ] ; then for muser in `grep -i MAILOPS $$$${CONTROL}`; do if [ $$$${l} -gt 0 ] ; then mail -s flex.$$$${HOST}.$$$$$$$$ $$$${muser} <prot + sleep 1 fi l=$(($$$${l}+1)) done @@ -69,6 +69,7 @@ else for muser in `grep -i MAILFAIL $$$${CONTROL}`; do if [ $$$${l} -gt 0 ] ; then mail -s "ERROR! flex.$$$${HOST}.$$$$$$$$" $$$${muser} <prot + sleep 1 fi l=$(($$$${l}+1)) done