[GE users] Export Env Variables

matbradford matthew.bradford at eds.com
Fri Sep 18 21:00:40 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. ]

>-----Original Message-----
>From: reuti [mailto:reuti at staff.uni-marburg.de]
>Sent: 18 September 2009 14:01
>To: users at gridengine.sunsource.net
>Subject: Re: [GE users] Export Env Variables
>
>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, Carsten, 

Thanks for the responses.

We only have 1 queue, and many different applications, each with their own PE. We want to add all the required application specific variables into the PE script so that the user doesn't need to worry about them. We have a work around, whereby the PE script generates a file that can then be sourced by the user's submission script. This works, but does require the user to add the line in their submission script. I think we will have to stick with this solution for now.

Is there a fundamental reason why the PE startup script is not able to modify the job's environment? 

Thanks very much,

Mat
>-- 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&dsMessage
>Id=217791
>
>To unsubscribe from this discussion, e-mail: [users-
>unsubscribe at gridengine.sunsource.net].

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

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



More information about the gridengine-users mailing list