Mail Archives: djgpp/2000/05/17/04:16:29
On Tue, 16 May 2000, AndrewJ wrote:
> > The solution to this is to wrap Perl with a batch file. Then
> > redirection works as you'd expect.
>
> Or you could use redir, correct?
No, this won't help.
The problem with CGIs compiled with DJGPP is that the Web server is a
Windows program. Windows programs run in the System VM, while DJGPP
programs run in their own VM. The Web server needs to redirect the
standard streams of the CGI program, in order to give it input and
catch its output, but redirecting I/O between separate VMs is tricky.
Wrapping the DJGPP program with a batch file seems to solve this
problem (evidently, Web servers know how to redirect I/O of
COMMAND.COM).
- Raw text -