I have a configuration file and want to learn what executables are using it (if any). I want to catch who is the reader of this file.
watch with some interval, I miss it, because the read happens so quickly:
watch -d -n 1 "lsof /home/me/my.conf"
If I try to execute the program I'm pretty sure uses it under the auspices of
strace, it fails because of the additional delay
strace -o /tmp/$(date +%s)_myprog.trace myprog
How can I reliably prove that
myprog is NOT reading this file?