How to open mac terminal using gtk #

I made the gtk # tool on Mac OS using xamarin. The problem is that I want to open a Mac terminal and pass some arguments.

From my code, I opened a Windows console like this, but I want to do this for a MAC.

    System.Diagnostics.Process p = new System.Diagnostics.Process();
    System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo ();
    info.FileName="cmd.exe";
    info.Arguments ="/C commands||pause";
    p.StartInfo = info;
    p.Start ();

Is there any other way to achieve this, for example, make a shell file, make changes to it and execute it, etc. This is my first time working on a Mac. Please explain from scratch. I cannot find relevant information on the Internet.

+4
source share
2 answers

Jaguar (OS X 10.2), Terminal /Applications/Utilities, . , . Mac OS X.

+2

.

$ open /Applications/Utilities/Terminal.app

bash sh

$ bash <options> <file>

$ sh <options> <file>

.

Mac Linux.

$ man bash
0

Source: https://habr.com/ru/post/1624396/


All Articles