X-Authentication-Warning: niemeyer.net: Host 200.230.186.186-as.acessonet.com.br [200.230.186.186] claimed to be computer From: "Gustavo Niemeyer" To: Subject: RE: !(DJGPP && CGI && SAMBA)?? Date: Thu, 1 Jul 1999 16:07:38 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal 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 >> >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... Well, now things are changing... so the problem is not Windows console programs as said before... because Cygwin compiled programs ARE Windows console programs exactly as said. Ok, but because std(out,in,err) can't be redirected does not means that the program can't run and that's what's happening. Program is reporting errorcode "1" and can't start. Why does it happens?? Do you know? Thank you anyway... Gustavo Niemeyer