[torquedev] tmpdir environment variable
chris at clusterresources.com
Tue Dec 4 08:54:24 MST 2007
Thanks for the prompt reply, how do I go about accessing the TMPDIR env
variable? When I ran env from a script I didn't see anything that said
"TMPDIR=", should I assume that it's /tmp/$PBS_JOBID?
Excerpt regarding this from the pbs_mom man page.
Sets the directory basename for a per-job temporary directory. Before
job launch, MOM will append the jobid to the tmpdir basename and create
the directory. After the job exit, MOM will recursively delete it. The
env variable TMPDIR will be set for all pro/epi‐log scripts, the job
script, and TM tasks. Directory creation and removal is done as the job
owner and group, so the owner must have write permission to create the
directory. If the directory already exists and is owned by the job
owner, it will not be deleted after the job. If the directory already
exists and is NOT owned by the job owner, the job start will be rejected.
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.
>> This is from the SGE manpage.
>> The tmpdir parameter specifies the absolute path to the base
>> of the temporary directory filesystem. When *sge_execd(8)
>> 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).
>> 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
>> torquedev mailing list
>> torquedev at supercluster.org
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
More information about the torquedev