I would like to use C # to execute a shell script. Based on such questions, I came up with a solution that looks like this.
System.Diagnostics.Process.Start("/Applications/Utilities/Terminal.app","sunflow/sunflow.sh");
At the moment, Terminal is opening, then the shell file with the default application is opening (Xcode in my case). Changing the default application is not an option, as this application will need to be installed for other users.
Ideally, the solution will allow arguments for the shell file.
source share