From: Banana Date: Tue, 12 Nov 2024 07:18:49 +0000 (+0100) Subject: adding information about cron and local perl lib usage X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=aranea.git adding information about cron and local perl lib usage Signed-off-by: Banana --- diff --git a/TODO b/TODO index f7a6f79..94101ff 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,4 @@ Set correct timezone. Maybe in config? +Use system available perl modules to avoid local cpan usage. Some sort of matching against spam domain list? Documentation for web interface and installation. diff --git a/crawler/documentation/cron.md b/crawler/documentation/cron.md new file mode 100644 index 0000000..01702bf --- /dev/null +++ b/crawler/documentation/cron.md @@ -0,0 +1,19 @@ +# Cron usage + +If any of the perl requirements are not installed globally or with the system package manager, +make sure to export the custom lib path. + +Example: + +``` +#!/bin/bash + +PATH="/home/user/perl5/bin${PATH:+:${PATH}}"; export PATH; +PERL5LIB="/home/user/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB; + +cd /home/user/aranea/crawler +./aranea-runner + +``` + +The `PERL5LIB` can be found in the user `.bashrc` if cpan is used.