From 6f760482f636500d9823305f9023de188c1173f9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 25 Aug 2013 23:47:07 -0300 Subject: Initial log file support --- lib/httracker/functions | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3