Dear Janos,

I am sorry I was wrong.

When I implemented my method, like:

exec("\progra~1\UCB\cygwin\bin\bash -l -c "make -C /opt/tinyos-1.x/apps/Sense/ 
pc");

and your method, like:

exec("c:\progra~1\UCB\cygwin\bin\bash -l -c "cd 
/opt/tinyos-1.x/apps/Sense/;make pc");

both cannot generate the proper result.

The build/pc directory has been created. However, inside the directory there is 
only one file: ident_flags.txt. Nothing else.

But if I run the command with cmd mannually, like:

C:\>\progra~1\UCB\cygwin\bin\bash -l -c "make -C /opt/tinyos-1.x/apps/Sense/ pc"

both can generate the expected .exe file.

Can you suggest any reason? Thank you.


Best Regards,
Enric Y.H. Zheng
----- Original Message ----- 
From: "Janos Sallai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2007 12:17 PM
Subject: RE: [Tinyos-help] How to make tinyos application under ecclipse


> As I recall, you can tell exec what working directory is (and what the
> environment is). Check out the docs of java.lang.Runtime.
> 
> If that's not what you need, you can still do exec("/cygwin/bin/bash -l -c
> cd mydir; /cygwin/tinyos-1.x/apps/Blink/make pc")
> 
> Janos
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 25, 2007 12:12 AM
> To: Janos Sallai
> Subject: RE: [Tinyos-help] How to make tinyos application under ecclipse
> 
> Dear Janos,
> 
> Thank you very much for your kind reply.
> 
> As you know I need to execute make on a specific directory. How should
> I specify that?Is it something like:
> 
> exec("/cygwin/bin/bash -l -c "/cygwin/tinyos-1.x/apps/Blink/make pc") ?
> 
> Best,
> Enric
> 
> 
> -You can use exec("/cygwin/bin/bash -l -c "make"). The -l option will make
> -sure that make will see the cygwin environment.
> 
> -Janos
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.5/1148 - Release Date:
> 11/23/2007 7:39 PM
> 
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to