Donated $50.
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
openvpn[48501]: WARNING: POTENTIALLY DANGEROUS OPTION --verify-client-cert none|optional
(or --client-cert-not-required) may accept clients which do not present a certificate