If it's just a matter of changing the TOSROOT env var,
you _should_ be able to use "export TOSROOT=yadayada".
If it is in a script you need to "source" the script
into your shell rather than just run it, either:
. script.sh
source script.sh
You may be having trouble with the regular PATH variable
as well, as it might reference executable directories in
the wrong TOS version.
There is some probability that various TOS scripts will
unilaterally change things to what they believe you want,
so I would look through all the TOS supplied /etc/profile.d
scripts, and other tools and scripts directories.
I am a suspicious soul so I explicitly set everything I
have discovered that TOS needs in my .bashrc file including
PATH and CLASSPATH, rather than depending on TOS scripts.
I don't use T2 so this has only worked on T1 versions for me.
But generally it seems to be only TOSROOT that needs to change...
MS
Krishna Verma wrote:
> Hi,
> i am a student doing thesis on WSN relating tinyOS. i recently has to
> switch from 2.x to 1.x and i have changed the path(TOS) variables to 1.x
> in the /etc/environment, But i still firnd 2.x when i test with echo
> $TOSROOT.
>
> later , i tried to export the variable from command line.. then i see
> the tinyos-1.x as the path variable for some time and then path
> automatically repeats to show tinyos-2.x again.
>
> can anybody, if understood my problem.. please help me.
>
> thanks in advance.
>
>
> regards
> krishna
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help