Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: setting a variable in prologue: msg#00110

clustering.torque.user

Subject: Re: setting a variable in prologue

Hi Garrick,

I see that in the pbs_mom man page the variable that you refer to...
So, I went to my /var/spool/pbs/mom_priv directory and made my config
look like this:

$logevent 127
$loglevel 6
$pbsserver b08l02
$tmpdir /scratch
$usecp *:/home /home
$restricted b08l02,b08l01,b07l01,b07l02,b06l01,b06l02,b05l01,b05l02

It is the same as how it looked before except I added the "$tmpdir
/scratch" to it. Scratch is set up like a /tmp - the sticky bit is
set. I pushed the config to all the nodes and restarted all the
pbs_moms and even the pbs_server.

In my simple submit script I do:
#!/bin/bash -l
#PBS -S /bin/bash
#PBS -m ae
#PBS -M tippensjl@xxxxxxxx
#PBS -N parallel-worlds-jen
#PBS -q workq
#PBS -l nodes=2:ppn=2
#PBS -l walltime=00:00:30,mem=1mb
echo "Current working directory is `pwd`"
echo $PBS_JOBID
echo Tmp dir is $TMPDIR
mpiexec /home/2vt/jenstests/message-passing-parallel-worlds/a.out

But the variable for $TMPDIR is empty. Am I missing something?

Thanks for all the help you give on this list.

-Jen



On 3/22/06, Garrick Staples <garrick@xxxxxxx> wrote:
> On Wed, Mar 22, 2006 at 01:37:13PM -0500, Aquarijen alleged:
> > Hi All,
> >
> > So I wrote a prologue script to create a working directory local to
> > the nodes running a job. Currently, I can refrence it in my pbs
> > script by "/tmp/temp_pbs_$JOBID" and all is well. But I'd like to
> > provide just one variable to the user to use - something like
> > "$scratchdir" so that I can change underlying mount points at will
> > without having to tell users to change from, say,
> > "/tmp/temp_pbs_$JOBID" to "/scratch/temp_pbs_$JOBID" in all their
> > scripts and programs. I tried just exporting it as a variable in the
> > prologue script, but it doesn't resolve in the pbs submit script -
> > only in the prologue script itself. I would appreciate help from you
> > creative folks on how to do something so that I can change the
> > underlying filesystem without hearing the screams of users.
>
> TORQUE 2.0.0 already has a similar feature. Look for "tmpdir" in the
> pbs_mom manpage.
>
> Basicly, if you put '$tmpdir /tmp' in your MOM config, then it will make
> a /tmp/$PBS_JOBID for you. The path is accessible in job and pelog
> scripts as $TMPDIR.
>
> --
> Garrick Staples, Linux/HPCC Administrator
> University of Southern California
>
>
> _______________________________________________
> torqueusers mailing list
> torqueusers@xxxxxxxxxxxxxxxx
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
>
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation