diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 23:47:07 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 23:47:07 -0300 |
commit | 6f760482f636500d9823305f9023de188c1173f9 (patch) | |
tree | 9ca2bce3f6225eb9cd8aaf8024a76492a34a48d0 /lib/httracker/functions | |
parent | a30422dbaa14ad4c0bc18affa30b9fd8f1f96712 (diff) | |
download | httruta-6f760482f636500d9823305f9023de188c1173f9.tar.gz httruta-6f760482f636500d9823305f9023de188c1173f9.tar.bz2 |
Initial log file support
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r-- | lib/httracker/functions | 7 |
1 files changed, 5 insertions, 2 deletions
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 |