delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/05/02:59:17

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP & CGI, I found an easier way!
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <1s8lesc0tpo6im4hjrm5e0bs3f5723si64@4ax.com>
References: <8ca6vt$2ae5$1 AT gavrilo DOT mtu DOT ru> <Pine DOT LNX DOT 4 DOT 10 DOT 10004041833390 DOT 729-100000 AT darkstar DOT grendel DOT net>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 32
X-Trace: /bQNuejKW7TCHlPyk5McBAa5NUh9udcNejV7uwdXhFYqRLS6xljC7nsJjNs3YK4Q4oaLC0SM4rki!NecgcKQpLa9QZ122t+t7mC54J0S52n87aekK96By/pXvZQDpOhmQYWh8Tz2vKrUBtS2VW2a+y0PV!WVA=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Wed, 05 Apr 2000 04:18:43 GMT
Distribution: world
Date: Wed, 05 Apr 2000 04:18:43 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 4 Apr 2000 18:36:57 +0600 (LKT), Kalum Somaratna aka Grendel
<kalum AT lintux DOT cx> wrote:

>*A*:  If you are using a Windows Web server, it probably won't work.  The
>reason is that Windows programs cannot easily redirect standard input and
>output of DOS programs (because DOS programs are run by Windows in a
>different "Virtual Machine"), and many Windows Web servers don't consider
>the case of a DOS CGI program, and don't bother to include the machinery
>necessary to do the redirection in a way that would work for DOS programs.
>So the output of your program never gets to the server.
>
>
>Consult the docs of the server: it might include some feature that enables
>redirection from DOS programs.  If that doesn't help, rebuild your CGI
>program with a Windows compiler, such as Mingw32 or Lcc-Win32 (see free
>Win32 compilers in "MS-Windows applications and DJGPP"), and it will work.

http://www.mingw.org/

So here would probably be a nice project for somebody to do:
Write a Windows wrapper around DOS that simply turns DOS CGI programs
into Windows CGI programs.  It would simply call a DOS program and
route the output from its virtual machine to Windows's stdout.


-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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