1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-20 08:20:11 -07:00

Fixed report mailing bug in vnc-server-activity.sh

This commit is contained in:
Steve Magnuson 2020-07-31 14:56:34 -07:00
parent 8debfa7a0f
commit 4a2de208cc
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
VERSION="2.3.8"
VERSION="2.3.9"

View File

@ -6,7 +6,7 @@
# Usage: vnc-server-activity.sh [email-address[,email-address]...]
#
VERSION="1.1.1"
VERSION="1.1.2"
# Pat and patmail.sh must be installed. If they are not, exit.
command -v pat >/dev/null 2>&1 || exit 1
@ -51,6 +51,6 @@ fi
# cat $OUTFILE
#} | /usr/sbin/ssmtp $MAILTO
cat $OUTFILE | sort | uniq | $(command -v patmail.sh) $MAILTO "$HOSTNAME VNC Server activity for 24 hours preceding `date`" telnet
cat $OUTFILE | sort | uniq | /usr/local/bin/patmail.sh $MAILTO "$HOSTNAME VNC Server activity for 24 hours preceding `date`" telnet
rm $OUTFILE
rm $FILTERED