[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: see what files are touched by a program

Steven <redalert.commander@gmail.com> writes:
>> So you manually start program-A and program-A starts program-B right?
> Yes, exactly, I was not clear on that in my first message, but that is
> the case. Program-B will then read and write from/to a file, and I would
> like to know which file.

I am assuming you are on i386 or amd64. You can run

strace -o s -s4096 -f program-A

and then "grep open s | grep -v O_RDONLY" to see what files are being
opened for writing.

Reply to: