use system() instead of backticks

This commit is contained in:
Isaac Connor 2016-02-10 09:09:36 -05:00
parent 1cb8a7ecf5
commit 2cd21a07c0
1 changed files with 6 additions and 6 deletions

View File

@ -186,13 +186,13 @@ while( 1 ) {
$filters = getFilters( { Name=>$filter_name, Id=>$filter_id } ); $filters = getFilters( { Name=>$filter_name, Id=>$filter_id } );
} }
foreach my $filter ( @$filters ) { foreach my $filter ( @$filters ) {
if ( $$filter{Concurrent} and ! $filter_id ) { if ( $$filter{Concurrent} and ! ( $filter_id or $filter_name ) ) {
my ( $proc ) = $0 =~ /(\S+)/; my ( $proc ) = $0 =~ /(\S+)/;
my ( $id ) = $$filter{Id} =~ /(\d+)/; 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}"); system( qq`$proc --filter "$$filter{Name}" &` );
`$proc --filter_id $id`;
} else { } else {
checkFilter( $filter ); checkFilter( $filter );
} }