Changeset c5074d2 in flex_extract.git for templates/job.template
- Timestamp:
- Oct 9, 2018, 8:42:16 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- aa275fc
- Parents:
- 0a06607
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
templates/job.template
r82b624a rc5074d2 5 5 # start with sbatch NAME_OF_THIS_FILE directly on machine 6 6 7 #SBATCH --workdir=/scratch/ms/ spatlh00/lh07 #SBATCH --workdir=/scratch/ms/$usergroup/$username 8 8 #SBATCH --qos=normal 9 9 #SBATCH --job-name=flex_ecmwf … … 17 17 ##PBS -q np 18 18 ##PBS -S /usr/bin/ksh 19 ## -o /scratch/ms/ spatlh00/lh0/flex_ecmwf.$PBS_JOBID.out19 ## -o /scratch/ms/$usergroup/$username/flex_ecmwf.$${PBS_JOBID}.out 20 20 ## job output is in .ecaccess_DO_NOT_REMOVE 21 21 ##PBS -j oe … … 25 25 26 26 set -x 27 export VERSION= 7.128 case $ HOSTin27 export VERSION=$version_number 28 case $${HOST} in 29 29 *ecg*) 30 30 module load python … … 33 33 module load grib_api/1.14.5 34 34 module load emos/437-r64 35 export PATH=$ {PATH}:35 export PATH=$${PATH}:$fp_root_path 36 36 ;; 37 37 *cca*) … … 40 40 module load emos 41 41 module load python 42 export SCRATCH=$ TMPDIR43 export PATH=$ {PATH}:42 export SCRATCH=$${TMPDIR} 43 export PATH=$${PATH}:$fp_root_path 44 44 ;; 45 45 esac 46 46 47 cd $ SCRATCH48 mkdir -p python$$ 49 cd python$$ 47 cd $${SCRATCH} 48 mkdir -p python$$$$ 49 cd python$$$$ 50 50 51 51 export CONTROL=CONTROL 52 52 53 cat >$ CONTROL<<EOF53 cat >$${CONTROL}<<EOF 54 54 EOF 55 55 56 56 57 submit.py --controlfile=$ CONTROL--inputdir=./work --outputdir=./work 1> prot 2>&157 submit.py --controlfile=$${CONTROL} --inputdir=./work --outputdir=./work 1> prot 2>&1 58 58 59 59 if [ $? -eq 0 ] ; then 60 60 l=0 61 for muser in `grep -i MAILOPS $ CONTROL`; do62 if [ $ l-gt 0 ] ; then63 mail -s flex.$ {HOST}.$$ $muser<prot61 for muser in `grep -i MAILOPS $${CONTROL}`; do 62 if [ $${l} -gt 0 ] ; then 63 mail -s flex.$${HOST}.$$$$ $${muser} <prot 64 64 fi 65 l=$(($ l+1))65 l=$(($${l}+1)) 66 66 done 67 67 else 68 68 l=0 69 for muser in `grep -i MAILFAIL $ CONTROL`; do70 if [ $ l-gt 0 ] ; then71 mail -s "ERROR! flex.$ {HOST}.$$" $muser<prot69 for muser in `grep -i MAILFAIL $${CONTROL}`; do 70 if [ $${l} -gt 0 ] ; then 71 mail -s "ERROR! flex.$${HOST}.$$$$" $${muser} <prot 72 72 fi 73 l=$(($ l+1))73 l=$(($${l}+1)) 74 74 done 75 75 fi 76
Note: See TracChangeset
for help on using the changeset viewer.