[torqueusers] $tmp dir in $WORKDIR

Arnau Bria arnaubria at pic.es
Wed Jan 14 12:34:38 MST 2009


On Wed, 14 Jan 2009 11:10:03 -0800
Garrick Staples wrote:

Hi Garrick,

> I can't answer that question.  Your job executes and does "work"
> wherever it wants.
> 
> The batch script is executed in the user's home directory (unless
> overrided by qsub's -d).  $PBS_O_WORKDIR is set to the directory
> where qsub was run.
> 
> The user's job is free to run and "work" wherever it wants.
Ok, so, if I want to "close"  the job in /some_dir, I must set -d in
qsub, but may do it using torque's var (PBS_O_INITDIR? 
Something like:

WORK_DIR=/some_dir 
TMPDIR=/some_dir/tmp
PBS_O_INITDIR=/some_dir 
PBS_O_ROOTDIR=/some_dir 
(looking at qsub's man page I saw -D option, I don't understand
differnces between -d and -D)

Thanks,
Arnau



More information about the torqueusers mailing list