Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to create tmp directories in hpc

# 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

 
PREVIOUS NEXT
Tagged: #create #tmp #directories #hpc
ADD COMMENT
Topic
Name
5+5 =