Mail Archives: djgpp/1999/07/02/06:50:21
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 -