Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Execution error with perl program

Posted on 2000-02-23
3
119 Views
Last Modified: 2013-12-25
I have a perl classified script which i have configured and hosted on the server. But it does not execute and the error is Error 500 - Internal Server Error, and it says, Premature end of Script Headers. What could be the problem?
0
Comment
Question by:rvarshneya
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
mattrope earned 100 total points
ID: 2550252
This error means that "Content-type: text/html\n\n" is not the first thing being printed out by your script.  Either something else is printing out first (possibly an error message), or your script is dying and not printing anything at all out.  Try placing the

  print "Content-type: text/html\n\n"

command at the very front of the program and see if the error continues.  You could also try running the program manually from the command line (i.e. not as a CGI script) and try to figure out what is getting printed out before the content type.

Hope this helps.
0
 

Author Comment

by:rvarshneya
ID: 2550648
Well, when i try to execute the script from the perl interpreter, it first prints bad command and file name twice and then prints out the output starting from the line Content Type: text/html and then the html output is printed out. But let me try by using the line that is "Content-Type: text/html\n\n" at the very front of the program.
0
 

Author Comment

by:rvarshneya
ID: 2550696
Thanx a lot... it helped.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question