From: Silvio Rhatto Date: Wed, 25 Sep 2013 13:31:43 +0000 (-0300) Subject: Counting items on httracker_iterate X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9560b284d5ef3879032d8e8c606561cc017c10dc;p=httruta.git Counting items on httracker_iterate --- diff --git a/lib/httracker/functions b/lib/httracker/functions index 5c45f9b..ea56f94 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -109,10 +109,16 @@ function httracker_sqlquery { # Iterate over all URLs function httracker_iterate { + local i=1 + local t="`wc -l $URLS`" + for link in `cat $URLS | xargs`; do # Fix entities link="`echo $link | sed -f $BASE/lib/httracker/html.sed`" + + echo "Processing item $i from $t total..." httracker_get "$link" + let i++ done }