Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to list all files opened by a process on the Mac OS X?



lsof will give you this information. See man lsof for more info.

-j


On Dec 25, 2005, at 10:32 AM, Chen Ben wrote:

Hi all!

How can I list all open files of one process? I have used sysctl to
list many process infomations, but I cannot find a way to get
something like the vnode or file descripters of one process.

What should I do?

Thanks
--
Ben Chen, Apple Technology Lab of Software Engineering School, Tongji University
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >How to list all files opened by a process on the Mac OS X? (From: Chen Ben <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.