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:
parent
8debfa7a0f
commit
4a2de208cc
@ -1 +1 @@
|
||||
VERSION="2.3.8"
|
||||
VERSION="2.3.9"
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user