From 94fdddc1e89fe2c0cf03f42b6e3ce24597e3b768 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 21 Sep 2020 11:56:56 -0400 Subject: [PATCH] Synchronize on space instead of = in zmcontrol.pl command line --- scripts/zmcontrol.pl.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/zmcontrol.pl.in b/scripts/zmcontrol.pl.in index 74886b4d4..c9a548eef 100644 --- a/scripts/zmcontrol.pl.in +++ b/scripts/zmcontrol.pl.in @@ -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();