![]() |
Re: Problems running cgi script
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 |
| All times are GMT. The time now is 05:46 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.