Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: File Open by Process

by shaikh741 (Novice)
on Nov 22, 2011 at 21:05 UTC ( #939547=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: File Open by Process
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2015-07-08 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls