[torqueusers] PBS_O_WORKDIR on prologue

Arnau Bria arnaubria at pic.es
Tue Jul 24 10:28:40 MDT 2007


On Tue, 24 Jul 2007 11:50:19 -0400
Troy Baer wrote:

> On Tue, 2007-07-24 at 15:34 +0200, Arnau Bria wrote: 
[...]
> No.  The prologue runs as root and does not share any environment with
> the job itself.  Also, this sort of violates the definition of
> PBS_O_WORKDIR as the directory from which the job was submitted and to
> which output will be delivered.

Mmm.. we did confuse the meaning.

[...]
> -----
> #!/bin/csh
> # /etc/profile.d/tmpdir.csh
> # If PBS_ENVIRONMENT exists and is "PBS_BATCH" or "PBS_INTERACTIVE",
> # set TMPDIR
> if ( $?PBS_ENVIRONMENT ) then
>   if ( "$PBS_ENVIRONMENT" == "PBS_BATCH" || \
>        "$PBS_ENVIRONMENT" == "PBS_INTERACTIVE") then
>     setenv jobid `echo $PBS_JOBID | sed 's/\..*//'`
>     setenv TMPDIR /tmp/pbstmp.$jobid
>     setenv PFSDIR /pvfs/pbsjobs/$jobid
>     setenv ENVIRONMENT BATCH
>   endif
> endif
> -----
> The directories themselves are created using {pro,epi}logue and
> {pro,epi}logue.parallel.

I saw something similar in google, but I was confusing epilog purpose.
I'm familiar to LSF and thought I was something to esub, which is
designed to modify job env.

> Hope this helps,
It did!
> 	--Troy
Thanks,
Arnau


More information about the torqueusers mailing list