I have a script running that mirrors two directories and updates a log file about what happens between the two directories. I want to parse this log file to get updates as they come in (while the script is running) and I want these to send me an email of what has changed, like a notification. Also - I don't want to get notified about the same bit of info more than once if possible?
I'm unsure on how I would go about doing this after reading through some of the command lists online.
Tldr; Really all i'm looking to do is when a line is added to the Logfile, parse the file to get the updated line, without getting any of the other lines.
Not all that strong with PowerShell so any help would be greatly appreciated.