FlyingHorseman
Technical User
Background: I have a Solaris 10 machine, on which I have iPlanet 6 web server and ColdFusion 8, along with Perl 5.8.4. I just migrated from Solaris 8 and Perl 5.8.0, with all the other components the same. I had scripts that were running before. And to compund problems some of the directory structure is different.
Flow: I call a cfm script which reads all files in a directory and checks whether they have been added in an Oracle database. If so, there is a red X next to it. Regardless each file is a link which invokes a cgi script with the file-name being passed to it.
But, I keep getting the following error:
Server Error.
This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log.
I look in the error log and this is the entry:
[05/Aug/2009:12:17:00] failure (25252): for host 10.x.y.zz trying to GET /cgi-bin/premierIsac.cgi, cgi_scan_headers reports: the CGI program /apps/infosec/cgi-bin/premierIsac.cgi did not produce a valid header (name without value: got line "use of uninitialized value in pattern match (m//) at /apps/infosec/cgi-bin/premierisac.cgi line 12, <infile> line 119.")
~ x ~
Code of the cgi file upto lines 13.
#!/usr/local/bin/perl -w
####### Original author: An intern from ages ago
use CGI qwstandard); #needed for the 'param' function below
$file_parameter = param("file"); # Assign the value of the passed parameter to $file
open(INFILE, "/export/home/testuser/Notices/FS_ISAC/$file_parameter") or die ("Couldn't open temp_notices for reading: $!");
$file = <INFILE>;
while ($file !~ /(.+)\s+from\s+the\s+Financial\s+Services\s+ISAC/i) {
$file = <INFILE>;
}
I am at a complete loss here. I thought the scripts were not executing inthe cgi-bin directory, but, I put a Hello.pl and it executes fine, though it is called from the browser directly and there is no hand-off.
Any ideas/suggestions welcome.
Flow: I call a cfm script which reads all files in a directory and checks whether they have been added in an Oracle database. If so, there is a red X next to it. Regardless each file is a link which invokes a cgi script with the file-name being passed to it.
But, I keep getting the following error:
Server Error.
This server has encountered an internal error which prevents it from fulfilling your request. The most likely cause is a misconfiguration. Please ask the administrator to look for messages in the server's error log.
I look in the error log and this is the entry:
[05/Aug/2009:12:17:00] failure (25252): for host 10.x.y.zz trying to GET /cgi-bin/premierIsac.cgi, cgi_scan_headers reports: the CGI program /apps/infosec/cgi-bin/premierIsac.cgi did not produce a valid header (name without value: got line "use of uninitialized value in pattern match (m//) at /apps/infosec/cgi-bin/premierisac.cgi line 12, <infile> line 119.")
~ x ~
Code of the cgi file upto lines 13.
#!/usr/local/bin/perl -w
####### Original author: An intern from ages ago
use CGI qwstandard); #needed for the 'param' function below
$file_parameter = param("file"); # Assign the value of the passed parameter to $file
open(INFILE, "/export/home/testuser/Notices/FS_ISAC/$file_parameter") or die ("Couldn't open temp_notices for reading: $!");
$file = <INFILE>;
while ($file !~ /(.+)\s+from\s+the\s+Financial\s+Services\s+ISAC/i) {
$file = <INFILE>;
}
I am at a complete loss here. I thought the scripts were not executing inthe cgi-bin directory, but, I put a Hello.pl and it executes fine, though it is called from the browser directly and there is no hand-off.
Any ideas/suggestions welcome.