I've followed your advise and I've achived to find a function, called
"setup_particulars(), in "env.c" which allows me to create and to set an
environmental variable using the function "setenvf().
I'm not really sure about how to do it, but I've seen that it call the
function "select_g_select_jobinfo_get()" in order to get the value for the
environmental variable. And that I've done.
I've implemented the "select_p_select_jobinfo_get()" in my select plugin
and the variables which it needs. But, I don't get the correct value in my
env. var.
Moreover I've put debug lines to see the behaviour and the call flow. But
this debug lines aren't shown in my log files! That's why I'm getting lost.

If you need more information, let me know!

Thank you for your time.

2012/6/28 Danny Auble <[email protected]>

>  If you follow how it is done for cray or bluegene in src/common/env.c you
> can probably use a very similar approach.
>
> Danny
>
> On 06/27/12 06:43, Sergio Iserte Agut wrote:
>
> I would like to write my own environment variable from the code of a
> select plugin.
>
>  I've developed a select plugin that is willing to give some information
> which will be used for an external application.
> This information must be sent through a environment variable.
>
>  Is it possible?
>
>  I hope my explanation is quite clear.
>
>  Regards!
> *
> *
> *--
> *
> *Sergio Iserte Agut, assistant researcher,*
> *High Performance Computing & Architecture, University Jaume I (Spain)*
>
>
>
>
>


-- 
*--
*
*Sergio Iserte Agut, assistant researcher,*
*High Performance Computing & Architecture, University Jaume I (Spain)*

Reply via email to