diff --git a/onvif/scripts/zmonvif-probe.pl b/onvif/scripts/zmonvif-probe.pl old mode 100644 new mode 100755 index 031c7071b..500aa91b0 --- a/onvif/scripts/zmonvif-probe.pl +++ b/onvif/scripts/zmonvif-probe.pl @@ -1,3 +1,5 @@ +#!/usr/bin/perl -w +# # ========================================================================== # # ZoneMinder ONVIF Control Protocol Module @@ -138,7 +140,7 @@ sub metadata die $result if not $result; print $result . "\n"; - my $result = $client->get_endpoint('media')->GetVideoAnalyticsConfigurations( { } ,, ); + $result = $client->get_endpoint('media')->GetVideoAnalyticsConfigurations( { } ,, ); die $result if not $result; print $result . "\n"; diff --git a/web/skins/classic/views/onvifprobe.php b/web/skins/classic/views/onvifprobe.php index 075d22f24..4644d226f 100644 --- a/web/skins/classic/views/onvifprobe.php +++ b/web/skins/classic/views/onvifprobe.php @@ -30,7 +30,7 @@ $cameras[0] = $SLANG['ChooseDetectedCamera']; function execONVIF( $cmd ) { - exec( escapeshellcmd("/usr/bin/perl /usr/local/bin/zmonvif-probe.pl $cmd"), $output, $status ); + exec( escapeshellcmd(ZM_PATH_BIN . "/zmonvif-probe.pl $cmd"), $output, $status ); if ( $status ) Fatal( "Unable to probe network cameras, status is '$status'" );