To find if a binary is being used/running

2013-10-04 Thread Nick Rogers
Hi, I need to know if a binary is executing or not. I just have the path to the binary e.g. /Applications/MyApp.app/Contents/MacOS/MyApp There's NSRunningApplication method runningApplicationsWithBundleIdentifier: , but I have other binaries which are embedded in this app which don't have a

Re: To find if a binary is being used/running

2013-10-04 Thread Kyle Sluder
On Oct 4, 2013, at 12:08 AM, Nick Rogers roger...@mac.com wrote: Hi, I need to know if a binary is executing or not. I just have the path to the binary e.g. /Applications/MyApp.app/Contents/MacOS/MyApp From the OS’s point of view, your question is ill-formed. The user can create a

Re: To find if a binary is being used/running

2013-10-04 Thread Jens Alfke
On Oct 4, 2013, at 12:08 AM, Nick Rogers roger...@mac.com wrote: Is this even possible? Basically no. In Unix there is no connection from an executable file to a process running that file (or from _any_ file to a process that has that file open, really.) The most exhaustive solution is what