My understanding is that scripts in the /etc/profile.d
directory get run by bash when it starts a login shell.
This should be done by /cygwin.bat as:
bash --login -i
If that isn't happening, you could try "sourcing" the
script explicitly in your .bashrc
Also give a gander to "man bash" for more information
than most people can stand.
MS
H S wrote:
> Hey everyone,
>
> I m using cygwin for tinyos-2.1
>
> The content of my tinyos.sh file is
> -------------------------------------------------------------------------------------------------------------------
> export TOSROOT=/opt/tinyos-2.x
> export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
> export CLASSPATH="$CLASSPATH;."
> export MAKERULES=$TOSROOT/support/make/Makerules
> export TOSDIR=$TOSROOT/tos
> type java >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre
> --java`:$PATH
> type javac >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre
> --javac`:$PATH
> echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH
> -------------------------------------------------------------------------------------------------------------------
>
> Every time I start my cygwin i have to run the above manualy and then
> cygwin function well
>
> But it is supposed that command /chmod a+x /etc/profile.d/tinyos.sh,
> made tinyos.sh file executable and cygwin should start with all this pre
> configured ../
> //
> /My problem is to run command of tinyos.sh file mannualy, everytime i
> start cygwin/
> //
> /Is there any solution to fix this/
> //
> /Thanks/
> /HS/
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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