www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/18/11:41:41

Date: Thu, 18 Nov 1999 18:01:39 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: The Advisor <TheAdvisor AT cadvision DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: CGI Problems
In-Reply-To: <3833302d_4@news.cadvision.com>
Message-ID: <Pine.SUN.3.91.991118175841.1049C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 17 Nov 1999, The Advisor wrote:

> I've made the infamous hello.exe to test out as a CGI script on my website.
> As I can run any of the other scripts that came packaged with my http
> server, I should be able to serve hello.exe right?

Wrong.  DJGPP programs are not Windows programs, and Windows runs them in 
their own Virtual Machine.  The Web server needs to redirect stdin and 
stdout of CGI programs, but redirecting them from a different VM is a bit 
tricky (although possible).  Many Windows Web servers don't bother to 
implement the trickery necessary to do this, so it doesn't work.

Bottom line: you cannot use a DOS compiler to generate a CGI.  Complain 
to Bill Gates.

- Raw text -


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