My application uses System.Diagnostics namespace to create and communicates with a child process using child.StandardInput, child.StandardOutput, and child.StandardError.
When the child process first starts, it prints some welcome message in the Standard Error stream and I want to get rid of that message, so I can get to the real error message. I tried to use child.StandardError.DiscardBufferedData() to clear the welcome message, but the method doesn't seem to do anything. I believe the same thing for StandardOutput.DiscardBufferedData().
I'm using Ubuntu 10.04 LTS and the child process I run is 'Rdf3xquery'.