Subject: | |
From: | |
Reply To: | |
Date: | Tue, 23 May 2000 11:53:23 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi All,
I just need a quick jump start for this. The books that I have do not make
this obvious.
I working on getting CGI to work with a Cobol program. I have a button
defined and I want to run a program
that will receive this info and display what is received for now. When I
submit the request Apache returns
an error in the error_log file:
%stderr
exec of /APACHE/PUB/cgi-bin/pat.cgi failed, reason: Exec format error
(errno = 8)
and the browser returns:
"The server encountered an internal error or misconfiguration and was
unable to complete your request."
I do not have the button data referenced in the CGI script but it is
referenced in the Cobol program.
This program is taken from an example that was given out at a seminar that
I attended and uses
C functions that accommodate the GET and POST methods.
The errors seem to indicate that the script needs to define the values
passed.
Temporarily, here is what the script looks like:
!#/bin/sh
echo Content-type: text/html
echo
echo<html>
echo <head>
echo <title>TEST HTML HEADER</title>
echo <p>
echo <img align=left src="http://32.76.248.194/logos.gif" width=
"237" height="128" border="0" alt="TEST graphic">
echo </P>
echo <H1><B><FONT SIZE="7">Plant 1</FONT></B></H1>
echo <h1><B><FONT SIZE="7">Home Page</FONT></B></h1>
echo <clear=left>
echo <FONT SIZE="2">
echo ( page last updated on ?mm/dd/ccyy? @ ?hh:mm? )
echo </FONT>
echo</head>
callci webscgio.exe.akrdev
Any info would be very appriciated.
Thanks,
John J. Archer ---- Opinions are my own,
not my employer's. ---
ph: 330-384-4039 t/l: 669-4039 fx: 330-384-2888
e-mail: [log in to unmask]
IBM Global Services
121 So. Main St. 3rd Floor
Akron, Oh. 44308-1439
|
|
|