[torqueusers] load environment variables before parsing PBS script

Christopher Samuel samuel at unimelb.edu.au
Tue Jan 3 17:19:00 MST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/01/12 03:23, Ashish Agarwal wrote:

> Submitting this will print 2.4.3. Now, how can I make this script print
> 2.7.2, which requires me to run some bash commands first?

I would suggest you look at Modules ( http://modules.sf.net/ ) and
implement that.  Then make your pbs script a bash script which can then do:

module load python/2.7.2
python foo.py

Hope this helps!
Chris
- -- 
    Christopher Samuel - Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: samuel at unimelb.edu.au Phone: +61 (0)3 903 55545
         http://www.vlsci.unimelb.edu.au/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8DmvQACgkQO2KABBYQAh8MHgCePDexK9XUNVOeTd+ocI29Y3iE
bOIAn2qktKXHgd1vwmvaYgj4yidPOvZu
=k0MS
-----END PGP SIGNATURE-----


More information about the torqueusers mailing list