in reply to Re^3: perl script not working after moved to new host
in thread perl script not working after moved to new host

I have tried by adding CGI::Carp

, but not getting errors on browser or server error log

use CGI qw(param); use CGI::Carp('fatalsToBrowser'); use Time::Local;

What could be the issue? please advice me

Replies are listed 'Best First'.
Re^5: perl script not working after moved to new host
by bangor (Monk) on Jan 25, 2016 at 12:40 UTC
    Are you still getting 500 Internal Server Error? Try printing a header
    use CGI::Carp('fatalsToBrowser'); print "Content-type:text/html\n\n";

      no, getting this error

      Software error:

      system error: 256 at /usr/local/nagios/stat/raksan/cgi-bin/ngcf.pl line 33.

      For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

      error lines point to here
      my $status = system("/home/nagios/stat/scripts/ng_rrd2img.sh $target z +oylotest dig $recenttimes now 300 130 > $wwwrealpath/tmp/$tmpgraph"); if ($status) { die "system error: $?" #<<<<<HERE<<<<<

      this error point here <<HERE<<<

        This means that the following command fails:

        system("/home/nagios/stat/scripts/ng_rrd2img.sh $target zoylotest dig +$recenttimes now 300 130 > $wwwrealpath/tmp/$tmpgraph");

        Maybe try to find out what command your script is trying to run there and find out why it might fail.