From f3c8b24b8ba4da7e6615dc82e65c6ccebda7f31e Mon Sep 17 00:00:00 2001 From: Julien Vehent Date: Thu, 9 Jan 2014 20:16:40 +0000 Subject: [PATCH] tweaks --- top1m/testtop1m.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/top1m/testtop1m.sh b/top1m/testtop1m.sh index 6c76816..52f504b 100755 --- a/top1m/testtop1m.sh +++ b/top1m/testtop1m.sh @@ -1,18 +1,14 @@ #!/usr/bin/env bash +parallel=50 [ ! -e "results" ] && mkdir results i=1 while [ $i -lt 1000000 ] do - echo processings sites $i to $((i + 50)) - for t in $(tail -$((1000000 - $i)) top-1m.csv | head -50 |cut -d ',' -f 2) + echo processings sites $i to $((i + parallel)) + for t in $(tail -$((1000000 - $i)) top-1m.csv | head -$parallel |cut -d ',' -f 2) do - tcping -u 2000000 $t 443 - if [ $? -gt 0 ] - then - continue - fi - ../cipherscan $t:443 > results/$t & + (tcping -u 10000000 $t 443; if [ $? -gt 0 ];then continue;fi;../cipherscan $t:443 -json > results/$t )& done - sleep 10 - i=$(( i + 50)) + sleep 7 + i=$(( i + parallel)) done