I basically want to write a code that will open terminal on my Mac and run a program. I copied the Terminal application where the executable for the code is. Then I tried:
int system(const char *command);
system("open -a Terminal.app --args gnuplot");
This will open terminal but not nothing more (does not initialize GNUplot).
Thank you!