From: Erwann ABALEA Newsgroups: comp.os.msdos.djgpp Subject: RE: !(DJGPP && CGI && SAMBA)?? Date: Thu, 1 Jul 1999 18:52:21 +0200 Organization: Halfling Soft Lines: 27 Message-ID: References: NNTP-Posting-Host: fermi.cnam.fr Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Sender: abalea_e AT fermi DOT cnam DOT fr In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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