delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/02/06:50:21

Date: Fri, 02 Jul 1999 09:54:06 +0200
From: Teun Burgers <burgers AT ecn DOT nl>
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)
X-Accept-Language: nl
References: <LOBBKLEPLBKLOKFELHOICEFLCDAA DOT djgpp AT niemeyer DOT net>
<Pine DOT OSF DOT 4 DOT 05 DOT 9907011848300 DOT 482-100000 AT fermi DOT cnam DOT fr>
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

- Raw text -


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