[GE users] Putting e-mail address in a variable inside script

sanfermines sanfermines at gmail.com
Sat May 23 10:03:38 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. ]

Michael, I have a text file like this:

linux_username  --> email_address

Inside every script I would like to search in that file for $USER and
grep his e-mail address which I storage in $EMAIL_ADDRESS, but as
Daniel told, #$ variables are not interpretated.

So... there isn't any "hack" to accomplish that?

Thank you very much.

On Fri, May 22, 2009 at 4:29 PM, templedf <dan.templeton at sun.com> wrote:
> Actually, that shouldn't work. The #$ line isn't interpreted by the
> shell. It's interpreted by qsub, and qsub doesn't do variable
> interpolation on the #$ lines.
>
> Daniel
>
> pollinger wrote:
>> sanfermines wrote:
>>
>>> Hello Everybody,
>>>
>>> I would like to put in a script a line as follows:
>>>
>>  >
>>
>>> #$ -M $EMAIL_ADDRESS
>>>
>>> where $EMAIL_ADDRESS is a variable with the real e-mail address
>>>
>>
>> This should work if $EMAIL_ADDRESS is defined on the execution host when
>> the job script is executed.
>>
>>
>>> But this way, SGE doesn't process properly the variable.
>>>
>>
>> What exactly does SGE wrong?
>>
>> Regards,
>> Harald
>>
>>
>>> Any ideas?
>>>
>>> Thank you very much.
>>>
>>
>>
>>
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=198278
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>

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

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



More information about the gridengine-users mailing list