diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2013-09-25 10:31:43 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2013-09-25 10:31:43 -0300 | 
| commit | 9560b284d5ef3879032d8e8c606561cc017c10dc (patch) | |
| tree | 4c2c0776d037b7b5fbb3370517cb7a07b6e9a5a7 /lib/httracker/functions | |
| parent | 67e1b835ea0f7eeef726e4aaf34227a8b22e68f6 (diff) | |
| download | httruta-9560b284d5ef3879032d8e8c606561cc017c10dc.tar.gz httruta-9560b284d5ef3879032d8e8c606561cc017c10dc.tar.bz2 | |
Counting items on httracker_iterate
Diffstat (limited to 'lib/httracker/functions')
| -rw-r--r-- | lib/httracker/functions | 6 | 
1 files changed, 6 insertions, 0 deletions
| 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  } | 
