Re: Problems running cgi script

Discussion in 'Perl' started by DOV LEVENGLICK, Aug 11, 2003.

  1. 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
     
    DOV LEVENGLICK, Aug 11, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    685
    Michael Sparks
    Jul 30, 2005
  2. Amir  Michail

    cgi relay for python cgi script

    Amir Michail, Oct 4, 2005, in forum: Python
    Replies:
    7
    Views:
    438
    Michael Ekstrand
    Oct 4, 2005
  3. rodmc

    Running CGI from within CGI

    rodmc, Feb 14, 2008, in forum: Python
    Replies:
    3
    Views:
    411
    Bruno Desthuilliers
    Feb 14, 2008
  4. Muzammil
    Replies:
    1
    Views:
    1,161
    red floyd
    Aug 28, 2008
  5. kath
    Replies:
    4
    Views:
    672
    J. Gleixner
    Apr 9, 2007
Loading...

Share This Page