#PBS -N hmon%NUM%_cleanup_%CYC%
#PBS -j oe
#PBS -S /bin/bash
#PBS -q %QUEUE%
#PBS -A %PROJ%-%PROJENVIR%
#PBS -l walltime=00:05:00
#PBS -l place=shared,select=1:ncpus=1:mpiprocs=1:mem=500MB
#PBS -l debug=true
set -x
model=hmon
export cyc=%CYC%
export PDY=%PDY:""%
%include
%include
export storm_num="%NUM%"
${HOMEhmon}/jobs/JHMON_CLEANUP
%include
%manual
TASK cleanup
PURPOSE: Deletes the HMON working directory left behind by the same
cycle yesterday. This job saves a minute or so of runtime that used
to take up the beginning of the launch job.
TROBLESHOOTING:
PROBLEM: Job has hung?
This job should not take longer than 5 minutes; all it does is an "rm
-rf". If the job takes more than 5 minutes, then it is likely that
there is a filesystem problem.
%end