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

Gonzalo Paniagua Javier gonzalo@ximian.com
Fri, 02 Apr 2004 17:42:07 +0200


El vie, 02-04-2004 a las 01:04, vguzev escribió:
> >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<-----------------------------------------------------

Your program works here:
gpanjav@lalo4:~$ mono go-mono/p.exe
Trying to start: 'mono --version'
Mono JIT compiler version 0.31.99, (C) 2002-2004 Novell, Inc and
Contributors. www.go-mono.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV      : normal
        Globalization: ICU

This is current CVS.

-Gonzalo