2017-06-19 I found this bash script on this site. It's supposed to email alert the admin when a user logs in on a server. I also need to exclude ssh connections. The email part works but it doesn't seem to only send it when a user logs in. It's sending the alert ~ every 2-3 minutes and contains the same "who" results each time. What is missing from the script?