[scilab-Users] Scilab Graphic Branch getenv() function
Mathieu Dubois
mathieu.dubois at limsi.fr
Fri Apr 27 22:11:34 CEST 2012
Why are you using sudo?
This causes the error (I think that sudo starts a new shell so reads
root's bashrc or something like that).
If you really need sudo, use the -E option which preserves environement.
Le 27/04/2012 20:55, Daniel Penalva a écrit :
> no, iam lauching from terminal at home:
>
> humannoise at humannoise-laptop:~$ sudo scilab -nwni
> [sudo] password for humannoise:
> ___________________________________________
> scilab-branch-graphic
> ...
>
> -->getenv('SCIDATSSAMPL')
> !--error 999
> getenv: Undefined environment variable SCIDATSSAMPL.
>
>
> -->getenv('HOME')
> ans =
>
> /home/humannoise
> ...
>
> humannoise at humannoise-laptop:~$ echo $SCIDATSSAMPL
> /home/humannoise/Desktop/UOne/academic/sampledata
>
>
> but thank you anyway. Anyone ? or maybe it is a bug and i must file it
> in bugzilla ?
>
> On Thu, Apr 26, 2012 at 11:57 PM, Mathieu Dubois
> <mathieu.dubois at limsi.fr <mailto:mathieu.dubois at limsi.fr>> wrote:
>
> Hello,
>
> I can tell you it works at home from a shell:
> mathieu at fromzewood:~$ echo $ADA_INCLUDE_PATH
> /home/mathieu/adainclude
> mathieu at fromzewood:~$ scilab -nwni
> [...]
> --> getenv("ADA_INCLUDE_PATH")
> ans =
>
> /home/mathieu/adainclude
>
> 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.
>
> As an example here is my .xsessionrc:
> mathieu at fromzewood:~$ more .xsessionrc
> export ADA_INCLUDE_PATH=~/adainclude
> export ADA_OBJECTS_PATH=~/adalib
>
> HTH,
> Mathieu (@fromzewood)
>
> Le 27/04/2012 01:58, Daniel Penalva a écrit :
>
> Hi pals,
>
> Iam having problem to use getenv("ENV_VAR") with environment
> variables
> that i defined in bash by exporting and editing bash startup
> files like
> .bashrc and /etc/bash.bashrc. The getenv cant find my vars, but
> it can
> find PATH, HOME and maybe other main vars.
> Do you know what is going on ?
>
> Thanks in advance !!
>
> --
> Daniel Penalva
>
> State related activity, currently:
> Phd - Physics in Institute for Theoretical Physics -
> http://www.ift.unesp.br/__posgrad/ramais-alunos-pos.php
> <http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php>
> Transparency portal:
> http://hera.ethymos.com.br:__1080/paainel/casca/
> <http://hera.ethymos.com.br:1080/paainel/casca/>
> *look for bolitutti user in Log AA/usuário pAAnel for my workflow*
>
> FLOSS and related ideas enthusiastic
>
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> users-unsubscribe at lists.__scilab.org
> <mailto:users-unsubscribe at lists.scilab.org>
> To check the archives of this mailing list, see
> http://mailinglists.scilab.__org/ <http://mailinglists.scilab.org/>
>
>
>
>
> --
> Daniel Penalva
>
> State related activity, currently:
> Phd - Physics in Institute for Theoretical Physics -
> http://www.ift.unesp.br/posgrad/ramais-alunos-pos.php
> Transparency portal: http://hera.ethymos.com.br:1080/paainel/casca/
> *look for bolitutti user in Log AA/usuário pAAnel for my workflow*
>
> FLOSS and related ideas enthusiastic
More information about the users
mailing list