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...

still having modules environment / Torque shell interaction problems: msg#00023

clustering.torque.user

Subject: still having modules environment / Torque shell interaction problems

Gentlemen:

I jumped the gun this afternoon in saying the problem has been
resolved with my Torque / modules environment interaction. (in the
thread with title about prologue / epilogue).

Here's what I've been able to determine by adding comments to various
/etc/profile and /etc/profile.d scripts.

1) Torque definitely munges /etc/profile, and then /etc/profile.d/*.sh
scripts when setting up the Torque shell.

2) variables set in the /etc/profile.d/modules-env.sh and export-ed,
are properly set in the PBS script environment. For instance, I can
echo $MODULEPATH and the correct value is displayed.

3) for reasons I haven't been able to determine, the actual modules
command somehow escapes the PBS script environment, so I'm still
getting "command not found" when using the module command in my PBS
scripts, but it's not because /etc/profile.d/modules.sh. It's as if
the PBS shell somehow gets amnesia, or forks off a clone shell that
doesn't get the value.

After suffering with the problem for a long time with modules-env.sh
built for version 3.1.6-9, I upgraded to 3.2.5, and really still have
the same problem. Here's the two ways, neither of which seem to be
working for me:

from 3.1.6-9, /etc/profile.d/modules-env.sh...
export MODULESHOME=/usr/local/modules-env-3.1.6-9
. $MODULESHOME/init/ksh
module load modules

---

from 3.2.5, /etc/profile.d/modules-env.sh
if [ "${MODULE_VERSION:-}" = "" ]; then
MODULE_VERSION_STACK="3.2.5"
MODULE_VERSION="3.2.5"
export MODULE_VERSION
else
MODULE_VERSION_STACK="$MODULE_VERSION"
fi
export MODULE_VERSION_STACK

module() { eval `/usr/local/modules-env-3.2.5/Modules/$MODULE_VERSION/bin/module
cmd bash $*`; }

MODULESHOME=/usr/local/modules-env-3.2.5/Modules/3.2.5
export MODULESHOME

4) If I explicitly put a command in my PBS submission script to source
/etc/profile.d/modules-env.sh, the subsequent module commands are
properly recognized by the PBS command shell.

Thanks, hopefully this is something that's not just limited to my settings.
-Dave


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

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
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