anvis
New Coder
I am trying to run the macOS terminal using the process class in c# with this code
this just does nothing. for the printing statement it prints a blank everytime.
C#:
Process compiler = new Process() ;
compiler.StartInfo.FileName = "/bin/bash";
compiler.StartInfo.Arguments = "pwd";
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
UnityEngine.Debug.Log(compiler.StandardOutput.ReadToEnd());
compiler.WaitForExit();
this just does nothing. for the printing statement it prints a blank everytime.