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

now I made changes as to exit now on browser says "Internal Server Error"

my $status = system("/home/nagios/stat/scripts/ng_rrd2img.sh $target $ +node dig $recenttimes now 300 130 > $wwwrealpath/tmp/$tmpgraph"); if ($status) { die "system error: $?" }

Is there any way can get errors on browser that says where exit or stop

Replies are listed 'Best First'.
Re^3: perl script not working after moved to new host
by bangor (Monk) on Jan 25, 2016 at 11:56 UTC
    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');

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