# in a slurm script mkdir -p /tmp/$USER mkdir -p /tmp/$USER/$SLURM_JOBID export GAUSS_SCRDIR="/tmp/$USER/$SLURM_JOBID" (name ^) do some calculation rm -dvfr $GAUSS_SCRDIR