<div class="gmail_extra">u got the point, thank you <br><br>just a very bad habit of sudoing things<br><br><div class="gmail_quote">On Fri, Apr 27, 2012 at 1:11 PM, Mathieu Dubois <span dir="ltr"><<a href="mailto:mathieu.dubois@limsi.fr" target="_blank">mathieu.dubois@limsi.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Why are you using sudo?<br>
<br>
This causes the error (I think that sudo starts a new shell so reads root's bashrc or something like that).<br>
<br>
If you really need sudo, use the -E option which preserves environement.<br>
<br>
Le 27/04/2012 20:55, Daniel Penalva a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
no, iam lauching from terminal at home:<br>
<br>
humannoise@humannoise-laptop:~<u></u>$ sudo scilab -nwni<br>
[sudo] password for humannoise:<br>
         ______________________________<u></u>_____________<br>
                    scilab-branch-graphic<br>
...<br>
<br>
-->getenv('SCIDATSSAMPL')<br>
                        !--error 999<br>
getenv: Undefined environment variable SCIDATSSAMPL.<br>
<br>
<br>
-->getenv('HOME')<br>
  ans  =<br>
<br>
  /home/humannoise<br>
...<br>
<br>
humannoise@humannoise-laptop:~<u></u>$ echo $SCIDATSSAMPL<br>
/home/humannoise/Desktop/UOne/<u></u>academic/sampledata<br>
<br>
<br>
but thank you anyway. Anyone  ?  or maybe it is a bug and i must file it<br>
in bugzilla ?<br>
<br>
On Thu, Apr 26, 2012 at 11:57 PM, Mathieu Dubois<br></div><div><div class="h5">
<<a href="mailto:mathieu.dubois@limsi.fr" target="_blank">mathieu.dubois@limsi.fr</a> <mailto:<a href="mailto:mathieu.dubois@limsi.fr" target="_blank">mathieu.dubois@limsi.<u></u>fr</a>>> wrote:<br>
<br>
    Hello,<br>
<br>
    I can tell you it works at home from a shell:<br>
    mathieu@fromzewood:~$ echo $ADA_INCLUDE_PATH<br>
    /home/mathieu/adainclude<br>
    mathieu@fromzewood:~$ scilab -nwni<br>
    [...]<br>
    --> getenv("ADA_INCLUDE_PATH")<br>
      ans  =<br>
<br>
      /home/mathieu/adainclude<br>
<br>
    If you launch scilab from your desktop (not from a shell) I think<br>
    you have to edit ~/.xessionrc (this file is executed when you login<br>
    from X-window) logout and re-login.<br>
<br>
    As an example here is my .xsessionrc:<br>
    mathieu@fromzewood:~$ more .xsessionrc<br>
    export ADA_INCLUDE_PATH=~/adainclude<br>
    export ADA_OBJECTS_PATH=~/adalib<br>
<br>
    HTH,<br>
    Mathieu (@fromzewood)<br>
<br>
    Le 27/04/2012 01:58, Daniel Penalva a écrit :<br>
<br>
        Hi pals,<br>
<br>
        Iam having problem to use getenv("ENV_VAR") with  environment<br>
        variables<br>
        that i defined in bash by exporting and editing bash startup<br>
        files like<br>
        .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but<br>
        it can<br>
        find PATH, HOME and maybe other main vars.<br>
        Do you know what is going on ?<br>
<br>
        Thanks in advance !!<br>
<br>
        --<br>
        Daniel Penalva<br>
<br>
        State related activity, currently:<br>
        Phd - Physics in Institute for Theoretical Physics -<br></div></div>
        <a href="http://www.ift.unesp.br/__posgrad/ramais-alunos-pos.php" target="_blank">http://www.ift.unesp.br/__<u></u>posgrad/ramais-alunos-pos.php</a><br>
        <<a href="http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php" target="_blank">http://www.ift.unesp.br/<u></u>posgrad/ramais-alunos-pos.php</a>><br>
        Transparency portal:<br>
        http://hera.ethymos.com.br:__<u></u>1080/paainel/casca/<div class="im"><br>
        <<a href="http://hera.ethymos.com.br:1080/paainel/casca/" target="_blank">http://hera.ethymos.com.br:<u></u>1080/paainel/casca/</a>><br>
        *look for bolitutti user in Log AA/usuário  pAAnel for my workflow*<br>
<br>
        FLOSS and related ideas enthusiastic<br>
<br>
<br>
    --<br>
    To unsubscribe from this mailing-list, please send an empty mail to<br></div>
    users-unsubscribe@lists.__<a href="http://scilab.org" target="_blank">scil<u></u>ab.org</a><br>
    <mailto:<a href="mailto:users-unsubscribe@lists.scilab.org" target="_blank">users-unsubscribe@<u></u>lists.scilab.org</a>><div class="im"><br>
    To check the archives of this mailing list, see<br></div>
    <a href="http://mailinglists.scilab." target="_blank">http://mailinglists.scilab.</a>__<u></u>org/ <<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.<u></u>org/</a>><div class="im">
<br>
<br>
<br>
<br>
<br>
--<br>
Daniel Penalva<br>
<br>
State related activity, currently:<br>
Phd - Physics in Institute for Theoretical Physics -<br>
<a href="http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php" target="_blank">http://www.ift.unesp.br/<u></u>posgrad/ramais-alunos-pos.php</a><br>
Transparency portal: <a href="http://hera.ethymos.com.br:1080/paainel/casca/" target="_blank">http://hera.ethymos.com.br:<u></u>1080/paainel/casca/</a><br>
*look for bolitutti user in Log AA/usuário  pAAnel for my workflow*<br>
<br>
FLOSS and related ideas enthusiastic<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
--<br>
To unsubscribe from this mailing-list, please send an empty mail to<br>
<a href="mailto:users-unsubscribe@lists.scilab.org" target="_blank">users-unsubscribe@lists.<u></u>scilab.org</a><br>
To check the archives of this mailing list, see<br>
<a href="http://mailinglists.scilab.org/" target="_blank">http://mailinglists.scilab.<u></u>org/</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Daniel Penalva<br><br>State related activity, currently:<br>Phd - Physics in Institute for Theoretical Physics - <a href="http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php" target="_blank">http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php</a><br>
Transparency portal: <a href="http://hera.ethymos.com.br:1080/paainel/casca/" target="_blank">http://hera.ethymos.com.br:1080/paainel/casca/</a>  *look for bolitutti user in Log AA/usuário  pAAnel for my workflow*<br><br>
FLOSS and related ideas enthusiastic<br>
</div>