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

index 659553a9d4cfc4dc59f218de4e62f684c9bc3966..b2a48ef7708974ea1426d32f13c196a39374d8a8 100644 (file)
@@ -45,7 +45,7 @@ function httracker_get {
   fi
 
   # Get each URL
-  httrack ${OPTS} ${url}
+  httrack ${OPTS} ${url} > $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}
+  httrack ${OPTS} --list ${URLS} > $LOG
 }
 
 # Get SemanticScuttle parameter
@@ -120,6 +120,9 @@ function httracker_initialize {
   LOCKFILE="${TMP}/`basename $0`.lock"
   httracker_check_lockfile
   httracker_set_lockfile
+
+  # Logfile
+  LOG="${TMP}/`basename $0`.log"
 }
 
 # Cleanup environment