Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: (OT) Logging open calls from a C program

by Anno (Deacon)
on Jul 29, 2007 at 12:38 UTC ( [id://629398]=note: print w/replies, xml ) Need Help??


in reply to Re^2: (OT) Logging open calls from a C program
in thread (OT) Logging open calls from a C program

I don't think lsof can replace a call trace in this case. The requirement is

I need to see what files a program is opening,...

which I read as "List all files the program opens during its lifetime". With lsof you get a snapshot of the files that are open at the moment. You'll miss files that were open but have been closed again, as well as those the program hasn't opened yet.

Anno

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found