[torqueusers] $tmp dir in $WORKDIR

Garrick Staples garrick at usc.edu
Wed Jan 14 12:39:05 MST 2009


On Wed, Jan 14, 2009 at 08:34:38PM +0100, Arnau Bria alleged:
> 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)

Don't overcomplicate things.  Just have your batch script 'cd' to wherever it wants.

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

See the Prop 8 Dishonor Roll at http://www.californiansagainsthate.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20090114/0fc92016/attachment.bin


More information about the torqueusers mailing list