From a9ef15363619e8855018a7c99fa6a409b293b7cf Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 12 Nov 2024 08:18:49 +0100 Subject: [PATCH] adding information about cron and local perl lib usage Signed-off-by: Banana --- TODO | 1 + crawler/documentation/cron.md | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 crawler/documentation/cron.md 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. -- 2.39.5