Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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
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 pondering the Monastery: (10)
As of 2014-09-16 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (34 votes), past polls