Message-ID: <379B09B8.F39AFF28@multimania.com> From: Sylvain VIART X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP for compiling CGI programs? References: <379a8e7c AT news DOT ismi DOT net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 75 Date: Sun, 25 Jul 1999 12:57:12 GMT NNTP-Posting-Host: 206.172.152.35 X-Trace: news20.bellglobal.com 932907432 206.172.152.35 (Sun, 25 Jul 1999 08:57:12 EDT) NNTP-Posting-Date: Sun, 25 Jul 1999 08:57:12 EDT Organization: Sympatico To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Ike wrote: > > Can DJGPP be used for CGI programs? I'm just starting with CGI > and was getting errors trying to run them from the Hypermart server, > and I was just wondering if it's a DJGPP problem, is there any I've had a similar problem, I've written a CGI in C with 'cgic' library and it run pretty well on the command line, but don't seem to work on my Web server (apache 1.3.2 win32). In fact it seem that's an apache problem... Someone said me to upgrade to 1.3.6. By the way for bypassing this problem I simply wrote a batch file to wrap the C program execution : --------------%<----------------------- @echo off REM callcgi.bat REM REM This script is for calling an executable compiled with gcc (DJGPP) REM as a cgi program. REM Auteur: Sylvain VIART (viarts AT jsp DOT umontreal DOT ca) REM Date: jeudi 08 juillet 1999 REM Last Modification : vendredi 09 juillet 1999, 16:15:16 Est (Heure d'été) REM set error=0 if "%QUERY_STRING%" == "" set error=QUERY_STRING is empty no program to call. if not %error% == 0 goto error if exist %QUERY_STRING% goto exec set ext=.com if exist %QUERY_STRING%%ext% goto exec set ext=.exe if exist %QUERY_STRING%%ext% goto exec set ext=.bat if exist %QUERY_STRING%%ext% goto exec set error=%QUERY_STRING%.[exe/com/bat] not found if not %error% == 0 goto error :exec %QUERY_STRING%%ext% goto fin :error echo Content-type: text/plain echo. echo callcgi.bat echo %error% :fin --------------%<----------------------- > command lines that I have to pass or anything else I need to do to > compile CGI programs? Just curious, I'm trying to figure out what's > wrong so I'm eliminating all the possibilities. I don't know where the problem is, if you have an answer I'll be interested. Hope that helps, Sylvain. -- Sylvain VIART - Computer scientist - Programmer analyst -+= -------------------- * --------------------- =+- Editor : VIM - 5.3 Win32 VIM - 5.4o Linux OS : Win95 Linux kernel 2.0.29 (Debian 1.3.1) -+= -------------------- * --------------------- =+- Je suis présentement à Montréal MAILTO:viarts AT jsp DOT umontreal DOT ca