in reply to perl script not working after moved to new host

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

You should always check the exit code of the system command.

my $status = system "..."; if ($status) { die "system error: $?" }
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

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

    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

      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