schmrz
11/11/2008 9:42:00 PM
I have tried to read stderr in a managed way and got nothing, so I'm going
to try to do it with WinAPI stdout and stdin redirection...
"Peter Duniho" <NpOeStPeAdM@nnowslpianmk.com> wrote in message
news:op.ukgynnxj8jd0ej@petes-computer.local...
> On Tue, 11 Nov 2008 01:54:05 -0800, schmrz <neko_877@hotmail.com> wrote:
>
>> Is there any industry standard for doing this? I wrote a C# class for
>> doing this and it's working flawless when interacting with cmd.exe and
>> other .NET console applications. But when I start ftp.exe I can't read
>> STDOUT from that application. Same goes for some other applications
>> (mainly consoles for dedicated game servers).
>>
>> Is there anyone with experience in this kind of applications.
>
> I haven't bothered to experiment. But keep in mind that some applications
> use stderr for message reporting, etc. If you want to capture _all_ the
> output from a console application, you should be capturing both output
> streams.
>
> I would expect that in the vast majority of cases where you get nothing
> from stdout, it's just because the output is going to stderr instead. The
> likelihood of you coming across a console application that has completely
> bypassed the normal console output mechansims is extremely low.
>
> Pete