I am trying to start a bash script using the Process class. The arguments is not working. The script run, but I want to be able to redirect the standard output to a file.
Here is the code: System.Diagnostics.Process export = new System.Diagnostics.Process(); export.EnableRaisingEvents = false; export.StartInfo.FileName = "/tool/find.sh"; export.StartInfo.Arguments = "1>export.log"; export.Start(); export.WaitForExit(); if (0 != export.ExitCode) Console.WriteLine("Error"); The find.sh script runs just fine by itself with the argument. The script will run with the application, but it does not push the output to a file with the argument specified. I have tried to use the StandardOutput variable on the Process class with no success. I am building the app with visual studio 2008 and running it on a SLES 10 box. Thanks -- View this message in context: http://www.nabble.com/System.Diagnostics.Process.StartInfo.Arguments-tp25179782p25179782.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list