]> gitweb.fluxo.info Git - httruta.git/commitdiff
Initial log file support (2)
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Aug 2013 02:48:54 +0000 (23:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 26 Aug 2013 02:48:54 +0000 (23:48 -0300)
lib/httracker/functions

index b2a48ef7708974ea1426d32f13c196a39374d8a8..004e29640d25ebe480ec4005cbd21415a0037580 100644 (file)
@@ -45,7 +45,7 @@ function httracker_get {
   fi
 
   # Get each URL
-  httrack ${OPTS} ${url} > $LOG
+  httrack ${OPTS} ${url} | tee $LOG
 
   if [ "$?" == "0" ]; then
     # Mark as downloaded
@@ -74,7 +74,7 @@ function httracker_get_incremental {
   fi
 
   # Grab URLs from the network
-  httrack ${OPTS} --list ${URLS} > $LOG
+  httrack ${OPTS} --list ${URLS} | tee $LOG
 }
 
 # Get SemanticScuttle parameter