Hi monks.
I got the following problem:
My CGI script, which
uses
strict, diagnostics and
warnings, and has
use CGI::Carp qw/fatalsToBrowser/ in a
BEGIN block, worked great with no errors of any kind (Syntax OK), no warnings, no whatever. Anyway I did a simple change (In some string, changed from
$file to
$fileurl or something like that), and the script stopped working with an Internal Server Error message (The CGI::Carp doesn't catch the error). I've executed the shell script given to me by
sgifford (Thank you!) and got the following message:
"+ ./downloads.pl
/path-to/errors.cgi: ./downloads.pl: text busy
+ echo Exited with status 2
Exited with status 2" where errors.cgi is the shell script in downloads.pl is the perl script in question.
I have no idea what the problem is and no idea how to fix it and I'm going crazy here. Anyone knows what might happened?!
This is the shell script by the way:
#!/bin/sh -x
printf "Content-type: text/plain\n\n";
exec 2>&1
./downloads.pl
echo "Exited with status $?"
-------------------------
Live fat, die young