Introduction
Introduction Statistics Contact Development Disclaimer Help
Add lawn-hark cronjob file. - gopher-lawn - The gopher lawn gopher directory pr…
git clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhf…
Log
Files
Refs
Tags
---
commit 535a392c7bd1d1c3a9cb6b1c707a9bc5c9a1b3c3
parent ee7a798530add04897221c9b89c3212a41836375
Author: Christoph Lohmann <[email protected]>
Date: Wed, 30 Aug 2023 21:12:57 +0200
Add lawn-hark cronjob file.
Diffstat:
A lawn-hark/lawn-hark-cronjob.sh | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/lawn-hark/lawn-hark-cronjob.sh b/lawn-hark/lawn-hark-cronjob.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+export PATH="/home/annna/bin:$PATH"
+
+statusserver="irc.bitreich.org"
+statuschannel="#bitreich-lawn"
+
+lawnharkdir="/br/gopher/lawn/lawn-hark"
+cd "${lawnharkdir}"
+
+./lawn-hark.sh state ../db/* 2>&1 \
+| while read -r result;
+do
+ case "${result}" in
+ ERROR*)
+ annna-say -s "${statusserver}" -c "${statuschannel}" \
+ "${result}"
+ ;;
+ esac
+done
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.