LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cygwin Commands in Labview

How do I send Cygwin commands (for TinyOS) using System Exec.vi (such as make install mica2 or change directory)?
 
Thanks,
 
Prasanna.
0 Kudos
Message 1 of 4
(3,756 Views)
The prefix of your command should be the path to the cygwin.exe file. So pwd is c:\cygwin\bin\pwd on my system. You have to make the distinction between bash commands and programs, so if you are trying to run a shell script you need to be running bash. In that case you might execute the script in a login.rc file. There is a manual on the Cygwin site that discusses more of the interop issue: here
0 Kudos
Message 2 of 4
(3,740 Views)
The problem i am facing is that while using system exec.vi, i am able to open up cygwin window and i am able to see the bin directory. I wanted to change that directory by sending input command line from system exec.vi like 'cd c:/tinyos' or send a command such as 'make mica2' ( i am trying to program crossbow sensors). is it possible? Thanks for the reply...
 
Prasanna.
 
0 Kudos
Message 3 of 4
(3,735 Views)
The file c:\cygwin\cygwin.bat is where the shortcut points to on my system for starting cygwin. If you examine that file you will see that it does some directory changing. You could probably replace the bash invokation with your make command and call the .bat file from sysexec.
0 Kudos
Message 4 of 4
(3,725 Views)