my $command = "/usr/sbin/ipset -A $table_name $ip";
my @result =`$command`
foreach my $line (@result)
{
if ($line =~ /already\sin\sset\sautoban_31/) {
system("/usr/sbin/ipset -A $higher_table_name $ip");
}
die("Unknown error. Command ".$command." return code: ".$?."") if $? -ne 0 ;
}