[torquedev] tmpdir environment variable

chris chris at clusterresources.com
Tue Dec 4 09:06:43 MST 2007


Nevermind got it, after talking to Glen Beane this is what I needed to do.

chris at wopr:~/test$ sudo cat /var/spool/torque/mom_priv/config
$pbsserver wopr
$tmpdir /var
chris at wopr:~/test$ cat script.sh.o8
 
SHELL=/bin/bash
PBS_JOBNAME=script.sh
TMPDIR=/var/8.wopr

Regards,

Steve Traylen wrote:
>
> On Dec 4, 2007, at 3:49 PM, chris wrote:
>
>> Hello All,
>>
>> I've had a site requesting a feature similar to SGE's tmpdir where a 
>> tmpdir environment variable is set with each job.  Is this something 
>> that can be added to torque or is there an equivalent that is already 
>> in torque?
>>
>
> Yes , look at the tmpdir option in the man page of the pbs_mom.
>
>  Steve
>
>> This is from the SGE manpage.
>>
>> tmpdir
>>    The tmpdir parameter specifies the absolute path to the base
>>    of  the  temporary  directory  filesystem. When *sge_execd(8) 
>> <https://www.cs.kent.ac.uk/people/staff/pao/gridengine/htmlman8/sge_execd.html>* 
>>
>>    launches a job, it creates  a  uniquely-named  directory  in
>>    this  filesystem  for  the  purpose of holding scratch files
>>    during job execution. At job completion, this directory  and
>>    its  contents  are  removed  automatically.  The environment
>>    variables TMPDIR and TMP are set to the path  of  each  jobs
>>    scratch directory (type string; default: /tmp).
>>
>> Regards,
>>
>> -- 
>> Chris Vaughan
>> EMEA Systems Engineer
>> Cluster Resources, Ltd.
>> Direct - UK Office:  +44 (0)1223 437 132
>> Mobile - +44 (0)7800 973 062
>> US Headquarters:  +1 801 717 3700
>> Skype: supercomputer1
>> www.clusterresources.co.uk
>>
>>
>> _______________________________________________
>> torquedev mailing list
>> torquedev at supercluster.org
>> http://www.supercluster.org/mailman/listinfo/torquedev
>


-- 
Chris Vaughan
EMEA Systems Engineer
Cluster Resources, Ltd.
Direct - UK Office:  +44 (0)1223 437 132
Mobile - +44 (0)7800 973 062
US Headquarters:  +1 801 717 3700
Skype: supercomputer1
www.clusterresources.co.uk




More information about the torquedev mailing list