Appended scope to front of COMMAND_PATH.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@201 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2002-12-15 14:32:27 +00:00
parent a4c6bb1bf9
commit dd4a8c90d3
1 changed files with 4 additions and 4 deletions

View File

@ -444,7 +444,7 @@ sub processTask
{
if ( $instruction eq "start" )
{
$command = COMMAND_PATH."zmdc.pl start zma ".$task->{monitor};
$command = main::COMMAND_PATH."zmdc.pl start zma ".$task->{monitor};
if ( $task->{limit} )
{
addPendingTask( $task );
@ -452,14 +452,14 @@ sub processTask
}
elsif( $instruction eq "stop" )
{
$command = COMMAND_PATH."zmdc.pl stop zma ".$task->{monitor};
$command = main::COMMAND_PATH."zmdc.pl stop zma ".$task->{monitor};
}
}
elsif( $class eq "alarm" )
{
if ( $instruction eq "start" )
{
$command = COMMAND_PATH."zmu --monitor ".$task->{monitor}." --alarm";
$command = main::COMMAND_PATH."zmu --monitor ".$task->{monitor}." --alarm";
if ( $task->{limit} )
{
addPendingTask( $task );
@ -467,7 +467,7 @@ sub processTask
}
elsif( $instruction eq "stop" )
{
$command = COMMAND_PATH."zmu --monitor ".$task->{monitor}." --cancel";
$command = main::COMMAND_PATH."zmu --monitor ".$task->{monitor}." --cancel";
}
}
print( "Executing command '$command'\n" );