correct cake usage
This commit is contained in:
@@ -105,11 +105,13 @@ echo 'exit $EC' >> "$JOBFILE"
|
|||||||
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
||||||
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
||||||
then touch "$JOBROOT"/.lastdel
|
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
|
find "$JOBROOT" -type d -depth -empty -delete
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
echo "The job file is in $JOBFILE"
|
echo "The job file is in $JOBFILE"
|
||||||
# send the job
|
# send the job
|
||||||
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE"
|
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE" "$JOBFILE"
|
||||||
|
|
||||||
|
wait
|
||||||
|
|||||||
@@ -100,13 +100,13 @@ echo 'exit $EC' >> "$JOBFILE"
|
|||||||
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
[[ -e "$JOBROOT"/.lastdel ]] || touch "$JOBROOT"/.lastdel
|
||||||
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
if test "$( find $JOBROOT/.lastdel -mmin +30 )"
|
||||||
then touch "$JOBROOT"/.lastdel
|
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
|
find "$JOBROOT" -type d -depth -empty -delete
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
echo "The job file is in $JOBFILE"
|
echo "The job file is in $JOBFILE"
|
||||||
# send the job
|
# send the job
|
||||||
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE"
|
srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE" "$JOBFILE"
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|||||||
Reference in New Issue
Block a user