Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: how to know the files opened by a processby vek (Prior) |
on Dec 26, 2005 at 21:21 UTC ( [id://519209]=note: print w/replies, xml ) | Need Help?? |
Well, lsof does work on multiple operating systems including Linux and Solaris. For example, lsof revision 4.74 lists information about files opened by processes for the following UNIX dialects:
The path to where lsof is installed my vary slightly but you can modify your code to pick the right one depending on which OS you are on at the time. So McDarren's example should give you what you need.
--
vek
--
In Section
Seekers of Perl Wisdom
|
|