03-03-2017 03:48 AM
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
03-06-2017 06:26 AM
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