[GE users] Export Env Variables

reuti reuti at staff.uni-marburg.de
Fri Sep 18 14:00:57 BST 2009


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Am 18.09.2009 um 14:42 schrieb matbradford:

> Is it possible to export environment variables from the PE start  
> script so that they are accessible by the job.
>
No.
> We have an OpenMPI job and are currently using linux modules to  
> load the environment correctly .
>
> At the moment this is in the actual job submission script, but we  
> would prefer to move it to the PE start up script.
>
> I?ve had a quick play, and it doesn?t seem to matter what I do, I  
> can?t create an environment variable of any sort in the PE start  
> script and then access it from within the job.
>
> Any thoughts would be much appreciated.
>

You can user a starter_method in the definition of the queue and then  
exec the program:

#!/bin/sh
export blabla=fubar
exec "$@"

-- Reuti

> Cheers,
>
> Mat
>
> Matthew Bradford
>
> Information Specialist
>
> Applications Services Field Operations EMEA
>
> UKIMEA RABU
>
> EDS, an HP company
>
> EDS c/o Rolls-Royce Plc, Moor Lane
>
> PO Box 31
> Derby
>
> DE24 8BJ
>
> email:  matthew.bradford at eds.com
>
> Office: +44 01332 632599
>
> Electronic Data Systems Ltd
> Registered Office: Cain Road, Bracknell, Berkshire, RG12 1HN
>
> Registered in England no: 53419
> VAT number: 432 99 5915
>
>
> We deliver on our commitments
>
> so you can deliver on yours.
>
>
>
> This message contains information which may be confidential and  
> privileged. Unless you are the intended addressee (or authorised to  
> receive for the addressee) you may not use, copy or disclose to  
> anyone the message or any information contained in this message. If  
> you have received this message in error, please advise the sender  
> by reply email and delete the message.
> ? 2005 Electronic Data Systems Corporation. All rights reserved.
>
> Electronic Data Systems Ltd
>
> Registered Office:, Lansdowne House, Berkeley Square, London  W1J 6ER
>
> Registered in England no: 53419
>
> VAT number: 432 99 5915
>
>
>

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=217791

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list