delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/01/13:35:44

From: Erwann ABALEA <erwann AT abalea DOT com>
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: <Pine.OSF.4.05.9907011848300.482-100000@fermi.cnam.fr>
References: <LOBBKLEPLBKLOKFELHOICEFLCDAA DOT djgpp AT niemeyer DOT net>
NNTP-Posting-Host: fermi.cnam.fr
Mime-Version: 1.0
X-Sender: abalea_e AT fermi DOT cnam DOT fr
In-Reply-To: <LOBBKLEPLBKLOKFELHOICEFLCDAA.djgpp@niemeyer.net>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019