From: Silvio Rhatto Date: Mon, 26 Aug 2013 02:47:07 +0000 (-0300) Subject: Initial log file support X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6f760482f636500d9823305f9023de188c1173f9;p=httruta.git Initial log file support --- diff --git a/lib/httracker/functions b/lib/httracker/functions index 659553a..b2a48ef 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -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