I have written a python3 script that does exactly what you are looking for. After our staff failed to transfer a log to the AudioVault system and it stopped at midnight, I asked the folks at BE about a utility that would check for the presence next days log, but they didn't have one so I wrote one of my own. It has been running for about a month here at WCSG. The script will send a text (using Verizon's firstname.lastname@example.org) or email every evening notifying the recipient either "Good news a log for tomorrow exists" or "Warning!! A log file for tomorrow is not available". Having it send a message every evening verifies that it is running. Also it will continue to send a message every 10 minutes until a log file is found.
Using a .json file for configuration the utility can be customized with the following parameters:
message when log exists
delay between messages
time to start checking
time to stop checking
email server config
path to the log file
file extention (in my case .evx)
It also writes some information to a log file for verification and trouble shooting.
On Tue, Aug 21, 2018 at 5:17 AM Mark McMillan <email@example.com> wrote:
George A Lake