LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using launchExecutable to call cygwin with commands

Hello all,

 

I want to be able to press a button & I want the system to call cygwin & then trigger a .sh file.

 

Two sh files shall be run consecutively.

 

Whereby the first is used to start a service

Whereby the second is used to run some bespoke command.

# step1

launchexecutable("$pathtoCYGWIN") 

# within cygwin run ./esidebug.sh (In the home directory that becomes path on initiation of cygwin)
# NOTE LaunchExecutable("C:\\cygwin64\\bin\\bash.exe \c C:\\cygwin64\\home\\wesleyt\\esidebug.sh" DOESN'T WORK
#Step2
launchexecutable($pathtoCYGWIN") // with different cmd (gdb -targ $userspecifiedtarget ....etc)

Any help will be greatly appreciated.

 

Regards,
Wes

0 Kudos
Message 1 of 2
(2,347 Views)

 Hi Wes, 

 

Hopefully you might find the following article useful:

 

http://digital.ni.com/public.nsf/allkb/AFCAC25164CDBD4C86257C6A00545CD5

 

I don't have any experience running shell scripts but there seems to be some useful

information in the article. I hope this helps.

 

Regards

 

Courtney  

0 Kudos
Message 2 of 2
(2,299 Views)