in reply to Re: File Open by Process
in thread File Open by Process

I am on Linux and trying to create a script which calls an external program which in turn calls compilers and linkers to build C/C++ applications. I would like to capture all the file opens from the the external program to find out exactly which files were opened with complete path to them.

Replies are listed 'Best First'.
Re^3: File Open by Process
by Eliya (Vicar) on Nov 22, 2011 at 21:16 UTC
      Thank you so much. I am working on my script, so I cannot try it at this time, but to confirm, it should also follow any processes created by my Perl script (compiler, linker, etc calls) if -f options is passed to it, correct?
        it should also follow any processes created by my Perl script

        Yes, that's what the -f is for.  See "man strace" for other useful options.