Date: Fri, 02 Jul 1999 09:54:06 +0200 From: Teun Burgers Subject: Re: !(DJGPP && CGI && SAMBA)?? Sender: burgers AT ecn DOT nl To: djgpp AT delorie DOT com Message-id: <377C701E.4CF24B61@ecn.nl> Organization: Netherlands Energy Research Foundation ECN X-Envelope-to: djgpp AT delorie DOT com MIME-version: 1.0 X-Mailer: Mozilla 4.5 [en] (X11; I; OSF1 V4.0 alpha) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: nl References: Reply-To: djgpp AT delorie DOT com Erwann ABALEA wrote: > 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... This is not accurate. I use apache for win32 (the prebuilt binary) on win95 with the DJGPP perl port and CGI.pm. This does work fine: stdout of perl can be grabbed by apache and the CGI script does gets its stdin. Apache cannot however access stderr of perl. So instead of starting the CGI script with #!/djgpp/bin/perl I use #!/djgpp/bin/redir -ea c:/logs/cgi.err c:/djgpp/bin/perl The redir program is used to redirect cgi error messages to a log file. This configuration works fine. Teun Burgers -- Drs A.R. Burgers Netherlands Energy Research Foundation ECN Phone: +31-224-564703 Solar & Wind Energy, PV Cells & Modules Fax : +31-224-563214 P.O. Box 1 email: burgers AT ecn DOT nl 1755 ZG Petten, The Netherlands