1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-28 04:10:19 -07:00

Fix cron manipulation in vnc-server-activity script

This commit is contained in:
Steve Magnuson 2020-08-01 10:49:55 -07:00
parent 4a2de208cc
commit 85ac7e71a4
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -6,7 +6,7 @@
# Usage: vnc-server-activity.sh [email-address[,email-address]...]
#
VERSION="1.1.2"
VERSION="1.1.3"
# 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 | /usr/local/bin/patmail.sh $MAILTO "$HOSTNAME VNC Server activity for 24 hours preceding `date`" telnet
cat $OUTFILE | sort | uniq | $(command -v patmail.sh) $MAILTO "$HOSTNAME VNC Server activity for 24 hours preceding `date`" telnet
rm $OUTFILE
rm $FILTERED