From 74294f3fb4dfcbded589d908abbff9138b864111 Mon Sep 17 00:00:00 2001 From: Kay Marquardt Date: Mon, 10 Apr 2023 09:48:50 +0200 Subject: [PATCH] Update bashbot.cron change bashbot.sh to bashbot.rc --- examples/bashbot.cron | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/bashbot.cron b/examples/bashbot.cron index 874ee8d..1919c29 100644 --- a/examples/bashbot.cron +++ b/examples/bashbot.cron @@ -23,13 +23,14 @@ MAILTO=root # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday; # │ │ │ │ │ 7 is also Sunday on some systems) # │ │ │ │ │ -# │ │ │ │ │ +# │ │ │ │ │ ┌───────────── run as user (must be omited in users crontab +# │ │ │ │ │ | # * * * * * USER command to execute # * * * * * root echo "run every minute!" # run as www every day at 0:00 plus random sleep between 0-3h - 0 0 * * * nobody sleep "$((RANDOM \% 180 ))m" ; /usr/local/telegram-bot-bash/bashbot.sh start # (re)start bot - 0 0 * * * nobody sleep "$((RANDOM \% 180 ))m" ; /usr/local/telegram-bot-bash/bashbot.sh resumeback # (re)start background jobs + 0 0 * * * nobody sleep "$((RANDOM \% 180 ))m" ; /usr/local/telegram-bot-bash/bashbot.rc start # (re)start bot + 0 0 * * * nobody sleep "$((RANDOM \% 180 ))m" ; /usr/local/telegram-bot-bash/bashbot.rc resumeback # (re)start background jobs # run as www on 24 of Dec, 12:00 0 12 24 12 * nobody /usr/local/telegram-bot-bash/bashbot.sh broadcast "X-Mas shopping is over!" # broadcast a message