Synchronize on space instead of = in zmcontrol.pl command line

This commit is contained in:
Isaac Connor 2020-09-21 11:56:56 -04:00
parent 3e3af0bca5
commit 94fdddc1e8
1 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ if ( $options{command} ) {
my $server_up;
while ( $tries and ! ( $server_up = connect(CLIENT, $saddr) ) ) {
Debug("Failed to connect to zmcontrol server at $sock_file");
runCommand("zmdc.pl start zmcontrol.pl --id=$id");
runCommand("zmdc.pl start zmcontrol.pl --id $id");
sleep 1;
$tries -= 1;
}
@ -142,9 +142,9 @@ if ( $options{command} ) {
.strftime('%y/%m/%d %H:%M:%S', localtime())
);
$0 = $0." --id=$id";
$0 = $0.' --id '.$id;
my $control = "ZoneMinder::Control::$protocol"->new($id);
my $control = ('ZoneMinder::Control::'.$protocol)->new($id);
my $control_key = $control->getKey();
$control->loadMonitor();