Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Re: Problems running cgi script

Reply
Thread Tools

Re: Problems running cgi script

 
 
DOV LEVENGLICK
Guest
Posts: n/a
 
      08-11-2003
in order to have perl dump valid html it must first print (to the
browser) a header followed by 2 newlines
print "Content-Type: text/html \n\n";


vanessa wrote:

>I am trying to run a cgi script from an shtml page:
>
><!--#exec cgi="/SMF/cgi-bin/signoff-emc.cgi" -->
>
>However on viewing the html page the output from the cgi script is not
>shown and the following error log is generated:
>
>[11/Aug/2003:10:46:03] failure (19406): for host
>njecomprod34.lehman.com trying to GET /SMF/cgi-bin/signoff-emc.cgi,
>cgieng_scan_headers reports: the CGI program
>/home/sme/SMF/prod/cgi-bin/signoff-emc.cgi did not produce a valid
>header (name without value: got line "use of uninitialized value in
>join or string at (eval 6) line 16.")
>
>I was wondering whether the perl version beng referenced was
>incorrect:
>
>#!/opt/perl-5.6.1/bin/perl -w
>
>use strict;
>use XML::Simple;
>use CGI;
>
>But on changing it to:
>
>#!/opt/perl/bin/perl -w
>
>I still get an error:
>
>[11/Aug/2003:11:10:44] failure (19406): for host
>njecomprod34.lehman.com trying to GET /SMF/cgi-bin/signoff-emc.cgi,
>cgieng_scan_headers reports: the CGI program
>/home/sme/SMF/prod/cgi-bin/signoff-emc.cgi did not produce a valid
>header (name without value: got line "begin failed--compilation
>aborted at /home/sme/smf/prod/cgi-bin/signoff-emc.cgi line 20.")
>
>There shouldn't be any problems with the actual code since it is being
>used in another area - I am more inclined to think that there is a
>problem with the environment I am working in, i.e incorrect server
>config (have already had to get SSI enabled on the unix box I am
>using).
>
>Any ideas would be much appreciated,
>
>Vanessa
>
>


--
Regards,
Dov Levenglick


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert exe file of cgi script into .cgi extension. Muzammil C++ 1 08-28-2008 07:50 PM
Running CGI from within CGI rodmc Python 3 02-14-2008 03:33 PM
what's wrong calling a Perl/CGI script in Perl/CGI script under Tomcat server? kath Perl Misc 4 04-09-2007 09:21 PM
cgi relay for python cgi script Amir Michail Python 7 10-04-2005 07:11 PM
Python-cgi or Perl-cgi script doubt praba kar Python 1 07-30-2005 08:25 AM



Advertisments