Advertisement

11.15.2004 at 06:30AM PST, ID: 21207024
[x]
Attachment Details

Exec Format Error when calling an HTML file from a perl cgi script

Asked by PaulS_III in CGI Scripting, Server Side Includes (SSI)

Tags: exec, format, error

I have a cgi script that uses some javascript functions to display a popup calendar for choosing dates. Thejavascript calls an HTML file named calendar.html as the base for the calendar. Whenever I click on the icon to open the calendar, the new window opens, but with an Error 500 Internal Server Error. Checking the apache error log I see:

Exec format error: exec of '/v/www/cgi-bin/timesheet/calendar.html' failed.

I know this has something to do with perl not knowing how to open or handle the file, or something like that.

So is it possible to execute/open/display an HTML file from within a perl script, or am I missing something here?

Thanks

PaulStart Free Trial
[+][-]11.15.2004 at 06:45AM PST, ID: 12584065

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: CGI Scripting, Server Side Includes (SSI)
Tags: exec, format, error
Sign Up Now!
Solution Provided By: gripe
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.15.2004 at 06:53AM PST, ID: 12584143

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2004 at 07:41AM PST, ID: 12584621

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2004 at 07:50AM PST, ID: 12584729

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2004 at 08:23AM PST, ID: 12585128

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2004 at 09:09AM PST, ID: 12585608

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2004 at 10:08AM PST, ID: 12586165

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32