I like the idea of Q-Feeds. I installed it and looking at the events, it isn't clear what is being blocked vs what is being let through. Am I missing something?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu#!/usr/local/bin/bash
baseDir="/home/mts/cron_scripts/"
errFile="/tmp/users.err"
cronFile="/tmp/getWho.cron"
users=$(/usr/bin/who -a)
if [ ${#users} -gt 0 ]; then
${baseDir}discordPush.sh "ALARM: ${users} logged on"
touch ${errFile}
else
if [ -f ${errFile} ]; then
${baseDir}discordPush.sh "OK: Users have logged off"
rm ${errFile}
fi
fi
echo "OK" > ${cronFile}
echo 0
# Origin/Description: cron/Checking for logged in users
2 * * * * /usr/local/sbin/configctl getwho update
cat actions_getwho.conf
[update]
command:/home/mts/cron_scripts/getWho.sh
parameters:
type:script
description: Check for logged in users
message:get who is logged in.service configd restart
configctl getwho update