Interacting with other console applications.

S

schmrz

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.
 
S

schmrz

I guess windows api functions for std redirecting are the only way to do it
.... (sadly)
 
S

schmrz

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...
 
S

schmrz

Looks like C programs use seperate IO buffers and they need to flush their
output with fflush. If they don't then redirection gets problematic. I have
read this on msdn and they say it's problematic. Does that mean it's
impossible or it can be done somehow?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top