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

Gazzall gaby_sev at hotmail.com
Mon Apr 23 06:26:58 EDT 2007


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 ......


Thanks

Gazzall




-- 
View this message in context: http://www.nabble.com/Execute-a-shell-program-form-a-C--program-tf3630397.html#a10137289
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list