Watch programs and perform actions based on a configuration file