Mail Archives: djgpp/2000/03/22/01:58:39
Message-ID: | <38D8529B.DDCCEFB@home.com>
|
From: | Robin Johnson <robbat2 AT home DOT com>
|
Organization: | Orbit Computers
|
X-Mailer: | Mozilla 4.7 [en] (Win98; U)
|
X-Accept-Language: | en,af,es
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: DJGPP & CGI, I found an easier way!
|
X-Priority: | 2 (High)
|
References: | <38D7C78E DOT 2708CFD1 AT pgmincorporated DOT com>
|
Lines: | 103
|
Date: | Wed, 22 Mar 2000 04:57:16 GMT
|
NNTP-Posting-Host: | 24.113.36.103
|
X-Complaints-To: | abuse AT home DOT net
|
X-Trace: | news1.rdc1.bc.home.com 953701036 24.113.36.103 (Tue, 21 Mar 2000 20:57:16 PST)
|
NNTP-Posting-Date: | Tue, 21 Mar 2000 20:57:16 PST
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
make a batch file in your cgi-bin directory,
with the 1st line as "@echo off"
and the second line "(prog name).exe %1"
link to the batch file in your html.
Voila!
It works with OmniHTTPd v2.05, haven't tried others.
I got this idea when reading through the bash manual...
it says stuff about how shell scripts and batch files are treated
so I tried an idea I had, and voila!
Damon Hogan wrote:
>
> Ok first of all I realized that I was replying to the wrong message. I
> actually
> was just figuring out how to get inline assembly to work.
>
> Secondly I cannot reply to the news server original message because the
> original message is deleted due to my provider news server crash.
>
> However here is the basics.
>
> Download the entire ming32 version (win32) version of GCC.
>
> Use that to compile the test.c cgi program attached. So GCC Mingw32
> (Win32) CGI works fine.
>
> I still cannot get DJGPP to work with CGI I presume because it is
> protected mode and apache is not or something like that.
>
> So in short you can use djgpp for all your development but just switch
> to ming32 to
> make a final compile on your CGI's.
>
> Damon
>
> Robin Johnson wrote:
>
> > Yes, please! I would love to know how to get it to work right!
> >
> > Damon Hogan wrote:
> > >
> > > What do you know, all FAQ's are not the same :) Thanks for your
> > help.
> > >
> > > It is the same problem. The FAQ just says get newer sources. But I
> >
> > > actually know
> > > how to fix the code now. If anyone needs help with this I will
> > explain.
> > >
> > > --
> > > Damon Hogan
> > > Sr Programmer/Analyst
> > > PGM, Inc.
> > > damonh AT pgmincorporated DOT com
> > > http://www.pgmincorporated.com
> > > http://www.pgmincorporated.com/site-imgs/dh.gif
> > > Voice (801) 434-4054 /Voice Mail
> > > Fax (801) 434-7304
> >
> > --
> > Robin Hugh Johnson
> > "Robbat2"
> > QTOD: "I used to be an idealist, but I got mugged by reality."
> > E-Mail : robbat2 AT t-p-l DOT com
> > ICQ# : 30269588 or 41961639
> > Home Page : http://tesla.t-p-l.com
> > Time Zone : Pacific Daylight (GMT - 8)
>
> --
> Damon Hogan
> Sr Programmer/Analyst
> PGM, Inc.
> damonh AT pgmincorporated DOT com
> http://www.pgmincorporated.com
> http://www.pgmincorporated.com/site-imgs/dh.gif
> Voice (801) 434-4054 /Voice Mail
> Fax (801) 434-7304
>
> --------------------------------------------------------------------------------
> #include <stdio.h>
> #include <stdlib.h>
>
> int main(void)
> {
> char hello[1000];
>
> printf("Content-type: text/html\n\n");
> printf("\n\nTesting!\n\n");
> scanf("%s",hello);
> printf("%s\n",hello);
> printf("%s\n",getenv("QUERY_STRING"));
> }
--
Robin Hugh Johnson
"Robbat2"
QTOD: "I used to be an idealist, but I got mugged by reality."
E-Mail : robbat2 AT t-p-l DOT com
ICQ# : 30269588 or 41961639
Home Page : http://tesla.t-p-l.com
Time Zone : Pacific Daylight (GMT - 8)
- Raw text -