I have a custom program that was built in python (lets call it RJTV.exe) that can be a little buggy. It runs in the background parsing csv's, but on occasion it will just crash or stop running for no apparent reason.

I am looking for a program or running a VBA macro that can monitor if this program is running. If it stops, I'd like for it to alert me or create a log at least of when the program stopped. Bonus points if the log can print what time the program started and what time the program crashed.

I assume I'd have to tap into the task manager, but I'm not sure how I would go about doing this.

Thanks!