go ahead... be a heretic | |
PerlMonks |
Re^3: (OT) Logging open calls from a C programby Anno (Deacon) |
on Jul 29, 2007 at 12:38 UTC ( [id://629398]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|