Removed hard coded binary path and perl binary location

This commit is contained in:
Jan M. Hochstein 2014-08-07 18:06:22 +02:00
parent e4155bcfa3
commit 99e794a97b
2 changed files with 4 additions and 2 deletions

4
onvif/scripts/zmonvif-probe.pl Normal file → Executable file
View File

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

View File

@ -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'" );