[Tinyos-help] help required run cygwin command from java

amrit kumar amritkr at gmail.com
Wed Sep 5 03:28:47 PDT 2007


Hi All,

I am currently working on Tiny OS related stuff and am stuck with the
following problem. Please let me know if you have a solution.

A part of the *java code* is required to do the following :

1. Open bash shell (cygwin) from command prompt by running "bash -- login
 i" on command prompt

  i.e "bash -- login  i"  does this on command prompt. bash shell prompt is
displayed after this.

2. On the same bash login(bash shell prompt) change directory to
"C:\tinyos\cygwin\opt\tinyos-1.x\apps\Bombilla"

  i.e  $ cd C:/tinyos/cygwin/opt/tinyos-1.x/apps/Bombilla

3. On the same prompt run "make pc" command

i.e $ make pc


All this has to be done through java. I even tried creating a shell file to
the above and calling the same from java, but every time the shell gets
stuck at step 1.It shows the login prompt but It does not execute any
command after 1st step.

Let me know your suggestions/solutions.

Thanks,
Amrit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070905/56495076/attachment.html


More information about the Tinyos-help mailing list