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

vguzev vguzev@yandex.ru
Fri, 2 Apr 2004 03:04:13 +0400 (MSD)

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

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

[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, (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'

Anything else?

Best regards,
Vadim B. Guzev