[Mono-list] StreamReader

Lee Connell lee_connell at hotmail.com
Mon Apr 3 22:04:29 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.  
>When
> > I set RedirectStandardOutput = true and attempt to read the entire 
>stream
> > either with ReadToEnd(); or looping with ReadLine(); the application 
>freezes
> > 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.
>
>-Gonzalo
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



More information about the Mono-list mailing list