#BSUB -J jecmag_maintain #job name
#BSUB -o %LOGROOT%/output/%ENVIR%/today/ecmag_maintain.o%J #stdout
#BSUB -e %LOGROOT%/output/%ENVIR%/today/ecmag_maintain.o%J #stderr
#BSUB -q %QUEUE%
#BSUB -L /bin/sh #login shell
#BSUB -cwd /tmp
#BSUB -W 06:00 #wall time
#BSUB -R rusage[mem=500]
#BSUB -n 1 #number of tasks
#BSUB -P MAG-MTN
#
%include
set -x
export envir=prod
export cyc=00
%include
export VERSION_FILE=$NWROOT/versions/mag.ver
if [ -f $VERSION_FILE ]; then
. $VERSION_FILE
else
ecflow_client --msg="***JOB ${ECF_NAME} ERROR: Version File $VERSION_FILE does not exist ***"
ecflow_client --abort
exit
fi
export HOMEmag=$NWROOT/mag.$mag_ver
$HOMEmag/jobs/JMAG_SETUP
%include
%manual
######################################################################
TASKSCRIPT DOCUMENTATION BLOCK
PURPOSE: Initially this job will run once per day to create the output
directories for the MAG log output files in the /nco/sib/ecfmag/output
directory and sets the link for the today dir
This will ultimately run all of the cleanup and maintenance activities
for the MAG dev ecflow project
######################################################################
######################################################################
# Job specific troubleshooting instructions:
# see generic troubleshoot manual page
#
######################################################################
%end