开发者

Determine files modified by process

开发者 https://www.devze.com 2022-12-23 05:37 出处:网络
I\'m writing a program to be run from the Linux user space which spawns another process. Ho开发者_StackOverflow社区w can it determine which files were modified by the spawned process after it complete

I'm writing a program to be run from the Linux user space which spawns another process. Ho开发者_StackOverflow社区w can it determine which files were modified by the spawned process after it completes?


Call it under strace and parse the output you care about.


Inject your own replacement for fopen(3) that records the names and modes.


Maybe g++ itself spawns other processes? Than "strace -fF -efile program" plus some filtering will probably help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消