Re: Accessing information from applications
Re: Accessing information from applications
- Subject: Re: Accessing information from applications
- From: Abhinav K Tyagi <email@hidden>
- Date: Fri, 03 Jun 2011 00:46:25 +0530
yes but process id will give hell lot of undesired data.
and i can access info from multiple process by
lsof | grep -i ".mp3" (any extension not just mp3)
Thanks
Abhinav K Tyagi
email@hidden
---------------------------------------------------------------
* Composed using Mac Mail.
On Jun 3, 2011, at 12:36 AM, Bhatnagar, Arvin wrote:
FYI:
If you open Activity Monitor and double click on a process. Then you
can
see a list of open files and ports.
Also, iN terminal if you enter 'lsof -p <pid>' then you should see the
exact same output.
On 6/2/11 2:56 PM, "Bhatnagar, Arvin" <email@hidden>
wrote:
From the man page you can do something like this:
lsof -F | grep MyApp
Excerpt from the man page of lsof:
OUTPUT FOR OTHER PROGRAMS
When the -F option is specified, lsof produces output that is
suitable for processing by another program - e.g, an awk or Perl
script,
or a C program.
Run the command in a terminal window and see what your output is.
Thanks,
Arvin
On 6/2/11 2:50 PM, "Abhinav K Tyagi" <email@hidden> wrote:
Hi list members,
I have searched for and have seen "lsof" command can be used and the
output can be then filtered out.
Although i can filter the information based on the extensions of
files
but how can i get the information if the opened file is a url. The
best case can be of an audio stream or something like that.
I am not getting way hoe to do it.
Thanks
Abhinav K Tyagi
email@hidden
---------------------------------------------------------------
On Jun 2, 2011, at 11:48 PM, Abhinav K Tyagi wrote:
Hi,
Is there any method to know what files are opened by any
application?
Thanks
Abhinav K Tyagi
email@hidden
---------------------------------------------------------------
* Composed using Mac Mail.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
n
.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden