correct cake usage

This commit is contained in:
ville rantanen
2014-09-12 13:12:21 +03:00
parent 1765580edf
commit a6224d342f
2 changed files with 6 additions and 4 deletions

View File

@@ -105,11 +105,13 @@ echo 'exit $EC' >> "$JOBFILE"
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
then touch "$JOBROOT"/.lastdel
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +10 -delete
find "$JOBROOT" -maxdepth 2 -mindepth 2 -type f -mtime +20 -delete
find "$JOBROOT" -type d -depth -empty -delete
fi
) &
echo "The job file is in $JOBFILE"
# send the job
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE"
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE" "$JOBFILE"
wait