From 2cd21a07c0104c2960528ac0b14237ef7e92c13b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 10 Feb 2016 09:09:36 -0500 Subject: [PATCH] use system() instead of backticks --- scripts/zmfilter.pl.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/zmfilter.pl.in b/scripts/zmfilter.pl.in index 0e0916072..e21fbf1d3 100755 --- a/scripts/zmfilter.pl.in +++ b/scripts/zmfilter.pl.in @@ -186,13 +186,13 @@ while( 1 ) { $filters = getFilters( { Name=>$filter_name, Id=>$filter_id } ); } - foreach my $filter ( @$filters ) { - if ( $$filter{Concurrent} and ! $filter_id ) { - my ( $proc ) = $0 =~ /(\S+)/; - my ( $id ) = $$filter{Id} =~ /(\d+)/; + foreach my $filter ( @$filters ) { + if ( $$filter{Concurrent} and ! ( $filter_id or $filter_name ) ) { + my ( $proc ) = $0 =~ /(\S+)/; + my ( $id ) = $$filter{Id} =~ /(\d+)/; + Debug("Running concurrent filter process $proc --filter_id $$filter{Id} => $id for $$filter{Name}"); - Debug("Running concurrent filter process ($proc) for $id $$filter{Name}"); - `$proc --filter_id $id`; + system( qq`$proc --filter "$$filter{Name}" &` ); } else { checkFilter( $filter ); }