title: Unity3D - C# script communication with a process (Ubuntu)
body: <p>Hello stackoverflow community</p>
  
  <p>First of all, sorry for my limited english skills but I try my best to explain my problem.</p>
  
  <p>My program runs on a Linux Ubuntu system. It runs fine without the following code lines. But I want to start a new terminal and furthermore I have to put in some arguments (change directory, start a simulation, configuration parameters, and so on). As you can see I test it with an "echo" command but nothing happen in the terminal. Therefore, I would like to ask if it's possible to write "strings" as Unix commands into the standard input of a terminal using a C# script and Unity3D. </p>
  
  <p>When I execute my project, a new terminal (Ubuntu) appears but in the window where normally occurs the game, there is only a whitescreen. </p>
  
  <p>Btw, the code is in the Start()-method of a game object.</p>
  
  <pre><code>    Process myProcess = new Process();
  
      myProcess.StartInfo.FileName = "gnome-terminal";
      myProcess.StartInfo.UseShellExecute = false;
      myProcess.StartInfo.RedirectStandardInput = true;
      myProcess.StartInfo.RedirectStandardOutput = true;
  
      myProcess.Start();
      myProcess.WaitForExit();
  
      String inputText = "echo Test";
      myProcess.StandardInput.WriteLine(inputText);
  </code></pre>
  
  <p>When I execute it looks like <a href="https://i.stack.imgur.com/kjGQ6.jpg" rel="nofollow noreferrer">this</a></p>
  
  <p>Thank you very much</p>
  
  <p>Regards</p>
  
  <p>Devel</p>