From a644de7f7a2451cd4a2d693dfd60056411a07891 Mon Sep 17 00:00:00 2001 From: Yargo ASUS2 Date: Fri, 4 Jul 2014 10:21:14 +0200 Subject: [PATCH] example source config --- Scratch/yargo.md | 6 ++++-- examples/ambros1/textsources/abc/config | 6 ++++++ src/ambros | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Scratch/yargo.md b/Scratch/yargo.md index 415697c..31f5bc5 100644 --- a/Scratch/yargo.md +++ b/Scratch/yargo.md @@ -42,14 +42,16 @@ Verzeichnisstruktur: #### Konstanten -- IDENTIFICATION: eindeutiges "Wort" (nur Buchstaben), so kurz wie moeglich +- IDENTIFICATION: eindeutiges "Wort" (nur Buchstaben), so kurz wie moeglich, + wird durch Verzeichnisname definiert - PRIORITY: Prioritaet P: 10=max, 99=min (kann durch Rezept veraendert werden) - SOURCE: Quelle (URL, Datei, ...); bei mehreren Quellen erste erfolgreich abgerufene, IDENTIFICATION wird dann mit Sub-ID (1,2,...) versehen - POLLING: Abrufintervall oder -zeit (crontab?) - RECIPE: Skript zur Verarbeitung - INTERVAL: Sendeintervall (in sec, 0= sofort sobald neue Version) -- ERRORREPORT: Fehlermelde-Methode: e-mail, Sendung, Log; inkl Regexp/Textblock fuer Zusatzinfo (optional) +- ERRORRECIPIENT: Fehlermelde-Methode: e-mail, Sendung, Log; optional + mit Regexp/Textblock fuer Zusatzinfo #### Variablen diff --git a/examples/ambros1/textsources/abc/config b/examples/ambros1/textsources/abc/config index e69de29..aa8519c 100644 --- a/examples/ambros1/textsources/abc/config +++ b/examples/ambros1/textsources/abc/config @@ -0,0 +1,6 @@ +PRIORITY 50 +POLLING 3600 sec +RECIPE filter.sh +INTERVAL 3600 +ERRORRECIPIENT mailto:john.doe@example.com +SOURCE /dev/null diff --git a/src/ambros b/src/ambros index 8157954..8cfe728 100644 --- a/src/ambros +++ b/src/ambros @@ -112,9 +112,9 @@ cd $ROOTDIR/$SOURCEDIR sources=`cat $tmpf` echo currently valid sources: $sources -# check sources names +# fetch and process sources +$SCRIPTDIR/extractor $sources -# poll&process sources with `extractor` # start&control `assembler` # start&control `channelchief` -- 2.11.4.GIT