dwatch

Watch programs and execute actions based on configuration file rules

brewmacoslinux
Try with needOr install directly
Source

About

Watch programs and perform actions based on a configuration file

Commands

dwatch

Examples

Watch a process and perform actions when it matches criteria$ dwatch -c /etc/dwatch.conf
Display available watch rules and actions$ dwatch -l
Watch specific process with verbose output$ dwatch -v -c ~/.dwatch.conf