Jump to content

Clean scratch space on compute nodes (BASH)

From ourproject.org wiki

This code assumes you have a directory with your user name on the scratch nodes. For example, mine is "/state/partition1/jri". You will have to change 'jri' to your user name. Note the script must be used via qsub, and erases all of your files on the scratch nodes. As always, be careful playing with things that rm.


#$ -S /bin/bash  
#$ -N mr_clean 
#$ -o /dev/null 
#$ -e /dev/null 
#$ -cwd


module load tentakel 
tentakel "rm -fr /state/partition1/jri/*"