From 085085f80b96b28233d6027380b57a7d2ffab525 Mon Sep 17 00:00:00 2001 From: Banana Date: Mon, 11 Nov 2024 16:50:45 +0100 Subject: [PATCH] moved last.run file Signed-off-by: Banana --- crawler/aranea-runner | 2 +- crawler/cleanup.pl | 2 +- crawler/fetch.pl | 2 +- crawler/parse-results.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crawler/aranea-runner b/crawler/aranea-runner index 7928acb..c5cc4f1 100755 --- a/crawler/aranea-runner +++ b/crawler/aranea-runner @@ -30,7 +30,7 @@ COMMANDS["cleanup"]="fetch.pl" CWD=$(pwd); PIDFILE="$CWD/log/aranea.pid"; -LASTRUNFILE="$CWD/last.run"; +LASTRUNFILE="$CWD/log/last.run"; TORUN="cleanup"; if [ ! -e "$PIDFILE" ]; then diff --git a/crawler/cleanup.pl b/crawler/cleanup.pl index 41286c5..2b7a893 100644 --- a/crawler/cleanup.pl +++ b/crawler/cleanup.pl @@ -143,7 +143,7 @@ sayYellow "Remove invalid urls done"; addToStats($dbh, "cleanup"); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "cleanup"; close($fh); diff --git a/crawler/fetch.pl b/crawler/fetch.pl index 72a334b..c0b2bbc 100644 --- a/crawler/fetch.pl +++ b/crawler/fetch.pl @@ -152,7 +152,7 @@ addToStats($dbh, 'fetchsuccess', $allFetched, $allFetched); $dbh->commit(); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "fetch"; close($fh); diff --git a/crawler/parse-results.pl b/crawler/parse-results.pl index 8c97a14..47d217a 100644 --- a/crawler/parse-results.pl +++ b/crawler/parse-results.pl @@ -137,7 +137,7 @@ addToStats($dbh, 'parse'); $dbh->commit(); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "parse"; close($fh); -- 2.39.5