<div class="gmail_extra">no, iam lauching from terminal at home:<br><br>humannoise@humannoise-laptop:~$ sudo scilab -nwni<br>[sudo] password for humannoise: <br>        ___________________________________________        <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:~$ echo $SCIDATSSAMPL<br>/home/humannoise/Desktop/UOne/academic/sampledata<br><br><br>but thank you anyway. Anyone  ?  or maybe it is a bug and i must file it in bugzilla ?<br>
<br><div class="gmail_quote">On Thu, Apr 26, 2012 at 11:57 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">
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 you have to edit ~/.xessionrc (this file is executed when you login 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 :<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi pals,<br>
<br>
Iam having problem to use getenv("ENV_VAR") with  environment variables<br>
that i defined in bash by exporting and editing bash startup files like<br>
.bashrc and /etc/bash.bashrc. The getenv cant find my vars, but 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>
<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>
</blockquote>
<br></div></div>
--<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>
</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>