dromodel
dromodel

Reputation: 10203

Determine files modified by process

I'm writing a program to be run from the Linux user space which spawns another process. How can it determine which files were modified by the spawned process after it completes?

Upvotes: 3

Views: 1351

Answers (3)

fungusakafungus
fungusakafungus

Reputation: 227

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

Upvotes: 0

Roger Pate
Roger Pate

Reputation:

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

Upvotes: 3

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

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

Upvotes: 0

Related Questions