[Mono-list] Starting processes with parameters from Mono 0.31 and mono-0.31.99.20040331

vguzev vguzev@yandex.ru
Fri, 2 Apr 2004 02:54:50 +0400 (MSD)


>add:
>
>	psi.UseShellExecute = false;
>
>and it will work.

Hmmm.... it doesn't work with UseShellExecute=false too... :(

8<-----------------------------------------------------
[vadim@server processstart]$ cat ProcessStart.cs
using System;
using System.Diagnostics;

class ProcessStart {
 static void Main(string[] args) {
  Console.Out.WriteLine("Trying to start: 'mono --version'");
  ProcessStartInfo psi = new ProcessStartInfo();
  psi.FileName = "mono";
  psi.UseShellExecute = false;
  psi.Arguments = "--version";

  Process p = new Process();
  p.Start( psi );
 }
}
[vadim@server processstart]$ mcs ProcessStart.cs
Compilation succeeded
[vadim@server processstart]$ mono --version
Mono JIT compiler version 0.31.99.20040331, (C) 2002-2004 Novell, Inc and Contri
butors. www.go-mono.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV      : normal
        Globalization: none
[vadim@server processstart]$ mono ProcessStart.exe
Trying to start: 'mono --version'
8<-----------------------------------------------------

Anything else?


Best regards,
Vadim B. Guzev