• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing information from applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing information from applications


  • Subject: Re: Accessing information from applications
  • From: "Bhatnagar, Arvin" <email@hidden>
  • Date: Thu, 02 Jun 2011 15:06:53 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Accessing information from applications

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

  • Follow-Ups:
    • Re: Accessing information from applications
      • From: Abhinav K Tyagi <email@hidden>
References: 
 >Re: Accessing information from applications (From: "Bhatnagar, Arvin" <email@hidden>)

  • Prev by Date: Re: Code style
  • Next by Date: Re: Accessing information from applications
  • Previous by thread: Re: Accessing information from applications
  • Next by thread: Re: Accessing information from applications
  • Index(es):
    • Date
    • Thread