Hi everyone
I moved from Win to MAc, and i am trying to integrate some functionalities in a c++ script.
The idea is to use the c++ script to launch various shell scripts in terminal, getting data from them and passing it to the C++ script
Now the issue that i have is....how you open terminal from c++ to execute a script? i tried system("terminal.app -x bash myscript"), but i get an error that says that
sh: terminal: command not found
Is there any tutorial or example about how to launch scripts in C++ on a mac (found stuff for bat files on pc, not on mac)? i would love to do all in c++ but i am still learning how to deal with ssh connections, so is easier to write a script for that and other operations that i do on my mac.
Thanks for your help in advance!
I moved from Win to MAc, and i am trying to integrate some functionalities in a c++ script.
The idea is to use the c++ script to launch various shell scripts in terminal, getting data from them and passing it to the C++ script
Now the issue that i have is....how you open terminal from c++ to execute a script? i tried system("terminal.app -x bash myscript"), but i get an error that says that
sh: terminal: command not found
Is there any tutorial or example about how to launch scripts in C++ on a mac (found stuff for bat files on pc, not on mac)? i would love to do all in c++ but i am still learning how to deal with ssh connections, so is easier to write a script for that and other operations that i do on my mac.
Thanks for your help in advance!