开发者

Determine files modified by process

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜