lee_connell at hotmail.com
Mon Apr 3 22:04:15 EDT 2006
I want to execute a process and read it's output which may be asking user
intuitive questions in which i want to write these back to the program and
then read the next streamed output from the process and continue.
I guess I'm confused as how this is suppose to work and looking at it wrong.
How do I accomplish the above?
>From: Gonzalo Paniagua Javier <gonzalo at ximian.com>
>To: mono-list at lists.ximian.com
>Subject: Re: [Mono-list] StreamReader
>Date: Mon, 03 Apr 2006 14:21:54 -0400
>On Fri, 2006-03-31 at 20:17 -0500, Lee Connell wrote:
> > I am using System.Diagnostics.Process to execute an external process.
> > I set RedirectStandardOutput = true and attempt to read the entire
> > either with ReadToEnd(); or looping with ReadLine(); the application
> > on the last read.
> > This happens in linux and windows so I'm assuming it's by design and I'm
> > doing something wrong.
> > What do I need to do to read the whole stream and continue with the
> > application?
>The program you're running has to end for that stream to reach EOF.
>Mono-list maillist - Mono-list at lists.ximian.com
FREE pop-up blocking with the new MSN Toolbar get it now!
More information about the Mono-list