id summary reporter owner description type status priority milestone component resolution keywords cc 1389 TMPDIR is re-defined twice when starting jobs Nicklas Nordborg Nicklas Nordborg "I found a problem when a cluster was configured with default value for temporary directory: `$TMPDIR`. This variable is automatically assigned a value by the Open Grid Engine that is unique for a job, but in our scripts we also append the job name to it: `TMPDIR=${TMPDIR}/`. The problem is that this happens twice now that we have split up the script files into multiple pieces. Basically we have: {{{ ## In submit.sh TMPDIR=$TMPDIR/RnaDemux-220427-0807-0006-158b86 mkdir -p $TMPDIR ## In job.sh TMPDIR=$TMPDIR/RnaDemux-220427-0807-0006-158b86 ## In xxxx.sh if [ ! -d ""$TMPDIR"" ]; then ## Directory doesn't exits! exit 1 fi }}} This causes the job name to be appended twice but we never create that directory which causes jobs to fail with: `Directory 'TMPDIR-->/tmp/593504.1.all.q/RnaDemux-220427-0807-0006-158b86/RnaDemux-220427-0807-0006-158b86' doesn't exists` " defect closed critical Job scheduler extension v1.6 net.sf.basedb.opengrid fixed