• 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: Is a file used by another application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is a file used by another application?


  • Subject: Re: Is a file used by another application?
  • From: Tomas Zahradnicky <email@hidden>
  • Date: Sun, 19 Jan 2003 21:54:13 +0100

Hi,

is there a way in Cocoa to know if a given file is used by another application or process? I think this would be some kind of equivalent of the lsof shell command.

Unfortunately NO.

Lsof traversers kernel structures in a very unhealthy way. If you want similiar functionality either parse results of lsof or grab it from lsof source.

-Tomas
--
# Tomas Zahradnicky, Jr
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Is a file used by another application?
      • From: Graham Lee <email@hidden>
References: 
 >Is a file used by another application? (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: How to kill a thread?
  • Next by Date: Re: How to kill a thread?
  • Previous by thread: Is a file used by another application?
  • Next by thread: Re: Is a file used by another application?
  • Index(es):
    • Date
    • Thread