Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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.

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939547]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-05-21 02:12 GMT
Find Nodes?
    Voting Booth?