[Mono-list] Execute a shell program form a C# program

Damien Churchill damien.churchill at ukplc.net
Wed Apr 25 05:00:15 EDT 2007


On Mon, 2007-04-23 at 03:26 -0700, Gazzall wrote:
> Hi,
> 
> In my C# program I am writing a .sh code.
> In this .sh code I have the following command:
> java -jar JavaApplication1.jar "/home/user/Debug/Etat/2.jrxml"
> "/tmp/Tmp/f021aeb7-0.xml" "/tmp/Tmp/59f34fed-2ada-.xml"
> 
> In my c# program a launching the .sh like that:
> myProcess = System.Diagnostics.Process.Start("file.sh");
> myProcess.WaitForExit();
> myProcess.Close();
> 
> The problem is that my program does not start the process.
> 
> Do you know Why?
> 
> Or do you have an idea to execute shell command like
> java -jar program ......
> 

sh /path/to/script.sh ;)

> 
> Thanks
> 
> Gazzall
> 
> 
> 
> 


More information about the Mono-list mailing list