CoEPP RC
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cloud:faq [2014/04/10 15:39]
rwilson [Don't use /tmp]
cloud:faq [2014/04/10 15:42] (current)
rwilson [Don't use /tmp]
Line 16: Line 16:
 MYDIR=$TMPDIR/​$PBS_JOBID MYDIR=$TMPDIR/​$PBS_JOBID
 trap "rm -Rf $MYDIR"​ EXIT      # delete directory on unexpected job exit trap "rm -Rf $MYDIR"​ EXIT      # delete directory on unexpected job exit
-mkdir -p $MYDIR+mkdir -p $MYDIR ​               # create the temp directory
 cd $MYDIR cd $MYDIR
     <create many files>     <create many files>
Line 24: Line 24:
 or using **mktemp**: or using **mktemp**:
 <​code>​ <​code>​
-MYDIR=$(mktemp -d)+MYDIR=$(mktemp -d)             # create the temp directory
 trap "rm -Rf $MYDIR"​ EXIT      # delete directory on unexpected job exit trap "rm -Rf $MYDIR"​ EXIT      # delete directory on unexpected job exit
 cd $MYDIR cd $MYDIR
cloud/faq.txt · Last modified: 2014/04/10 15:42 by rwilson
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki