[Mono-list] Process doesn't give back the hand on Windows

Vincent Arnoux vincent.arnoux@rfo.atmel.com
Mon, 09 May 2005 18:32:43 +0200


Hello,
I am trying to make work a mono app under Windows and I am having a hard
time with an external process execution that doesn't give the hand back:
  System.Diagnostics.Process proc = new System.Diagnostics.Process();
  proc.StartInfo.FileName = "C:\\WINNT\\system32\\rsh.exe";
  proc.StartInfo.Arguments = "machine -l mylogin \"./myscript\"";	
  proc.StartInfo.UseShellExecute = false;
  proc.StartInfo.RedirectStandardOutput = true;
  proc.Start();
  proc.WaitForExit();
  string output = proc.StandardOutput.ReadToEnd();
  Console.WriteLine(output);
  Console.WriteLine("End of script");

I never can read the "End of script" line. What am I doing bad ?

Vincent