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

Is there any way can get errors on browser that says where exists
If you put this line at the top you should see the error in the browser
use CGI::Carp('fatalsToBrowser');

Replies are listed 'Best First'.
Re^4: perl script not working after moved to new host
by prabhakard (Novice) on Jan 25, 2016 at 12:09 UTC

    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

      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<<<