After entering a qsub command, the output stream is updated in my home directory as it runs. This causes two problems for me:
1) My /home/brian folder is slow, even writing a few text characters. Utilities with a significant amount of output text are depressingly slow. However, my job files are in /tmp/brian and this location is very fast and local to the compute nodes.
2) If I run myscript.sh in /tmp/brian, I'd like the output stream to update in the same folder as it runs, so I can check the results without having to go search in a different folder than the job.
I've tried this and several permutations of the qsub command:
cd /tmp/brian
set HOME=`pwd`
qsub -j oe -k oe -d `pwd` -w `pwd` -v "HOME=`pwd`,PBS_O_HOME=`pwd`" "./my_script.sh"
I can set the -e and -o options to place the streams in /tmp/brian after the run, but I can't get it to update in /tmp during the run, only my home folder.
If I type the "env" command within my_script.sh, I get these:
HOME=/home/brian
PWD=/tmp/brian
PBS_O_HOME=/tmp/brian
PBS_O_INITDIR=/tmp/brian
PBS_O_WORKDIR=/tmp/brian
The $HOME environment variable is set incorrectly, despite passing it explicitly. Perhaps there's a config file somewhere overriding my settings?