I'm using an automation tool to build a virtual machine. During the this automation a config file (/etc/myprogram/cofig.ini) is becoming empty.
This file's contents are required complete the automation, but I'm clueless which process is emptying the file.
I want to monitor a file and list the name of processes changed the contents of the file.
I'm using Ubuntu 16.04.
I saw some questions in Stackoverflow but did help. I tried to use audictl inotify and watchdog . Please let me know any better way to do this. Is there a way to do this using python.