Hi.
I'm new to this list so I'm not sure if I'm wrong here...
But calling
> export.StartInfo.RedirectStandardOutput = true;
> export.WaitForExit();
> export.StandardOutput.ReadToEnd()
can lead to a deadlock (at least when using .net framework...).
When export.StandardOutput buffer is full the calle
Chris,
I was able to fix it. You got me started down the right path.
I still couldn't get the argument variable to work with the 1>output.log,
however, I was able to work around it.
The below code creates a file called output.log in the current path.
Thanks again.
On Tue, Sep 1, 2009 at 10:52 AM, Pat55 wrote:
> 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.Dia
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