aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config3
-rwxr-xr-xhttracker2
-rwxr-xr-xscuttler5
3 files changed, 7 insertions, 3 deletions
diff --git a/config b/config
index c426b1f..c73e841 100644
--- a/config
+++ b/config
@@ -2,7 +2,8 @@
MIRRORS="/var/cache/sites/arquivo/conteudo/links.sarava.org/assets"
FEED="https://links.sarava.org/rss?sort=date_desc&count=100"
TMP="/tmp/httracker"
-URLS="$TMP/urls.txt"
+URLS="$TMP/urls-httracker.txt"
+URLS_SCUTTLER="$TMP/urls-scuttler"
LEVEL="1"
EXT_LEVEL="1"
FILESIZE=""
diff --git a/httracker b/httracker
index 5967e4a..ae86d1f 100755
--- a/httracker
+++ b/httracker
@@ -25,4 +25,4 @@ fi
httracker_iterate
# Cleanup
-rm -rf $TMP
+rm -rf $URLS
diff --git a/scuttler b/scuttler
index 6bc90db..1136852 100755
--- a/scuttler
+++ b/scuttler
@@ -21,6 +21,9 @@ dbpass=`httracker_scuttle_config dbpass`
dbname=`httracker_scuttle_config dbname`
dbhost=`httracker_scuttle_config dbhost`
+# So we can run both applications in parallel
+URLS="$URLS_SCUTTLER"
+
# Get URLs from database
URLS=`mktemp -p ${TMP}`
chown links.links ${URLS}
@@ -34,4 +37,4 @@ httracker_sqlquery "select bAddress from sc_bookmarks;" > ${URLS}
httracker_iterate
# Cleanup
-rm -rf $TMP
+rm -rf $URLS