looks fine.
Is the path to perl right?
Is permissions set to 755?
Is there any undefined vars in your script?
Maybe the script requiers a module not installed on the server?
check ciroc's perl modules:
http://www.defectalisman.exofire.net...s/check_mod.pl
The only other thing I can think of is something directly wrong in the script, such as wrong syntax or a "or die stament that is doing exactly that".
I got around this by creating a sub for the script to die.
eg:
Code:
#!usr/bin/perl
sub error;
print $var or &error(01, "error message here");
sub error {
my ($no, $msg) = @_;
print "This script has a error number $no.\n The message for the error is this: $msg\n";
}
Worked for me. Put it next to everything that is suspect and it will tell you where it is having problems.