Mail Archives: djgpp/1999/07/01/13:35:44
On Thu, 1 Jul 1999, Gustavo Niemeyer wrote:
> >It's because Windows console programs cannot duplicate the stdout/stderr
> >handles from a DOS-program (or from another virtual machine). Redirection
> >of stdin/stdout which CGI-programs depends on, can only happen between
> >processes on the same virtual machine.
>
> Sorry, but I didn't understand. My code DID work with Cygwin. (And it is a
> console program) And everything else I tried to run on my web server
> as CGI did work also. The only thing I can't use is DJGPP binaries. And if
> it was a redirection problem it would not exit with error code one and the
> program would run normaly. It just wouldn't show any output but the program
> ISN'T running at all.
Well.... Programs compiled with Cygwin are Windows programs, so another
Windows program can easily grab it's stdin, stdout and stderr...
As you pointed, your problems come with DJGPP binaries... Because
std{in,out,err} can't be redirected as easily as Windows progs.
As a result, your program can't send any output to the web server, and
can't accept any input... It's useless...
--
Erwann ABALEA
erwann AT abalea DOT com
- Raw text -