Removed hard coded binary path and perl binary location
This commit is contained in:
parent
ef59f0041c
commit
198d537bff
|
@ -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";
|
||||
|
||||
|
|
|
@ -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'" );
|
||||
|
|
Loading…
Reference in New Issue