Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have some FileMaker databases being served for dev purposes and I keep bumping into occurrences where the database/file is locked and I can't make changes to it.

How can I determine what application is touching/using this file so I can kill it?

share|improve this question
add comment

2 Answers

Have you tried using the terminal command

$ lsof 'Filename'

For a more detailed look at the file use

$ lsof | grep -f 'Filename'

Should give you the command that is using it and also the PID of that file

share|improve this answer
    
The file is named Data.fmp12, so when I cd into that directory and run lsof 'Data.fmp12', the terminal pauses a moment and then just displays another blank command prompt –  SWL Oct 12 '12 at 16:25
add comment

Try adding sudo. I set up a similar setup with the same file name, it would only appear if the file was open somewhere in a application. It didn't show up until I added the sudo tough.

sudo lsof | grep /path/to/file/Data.fmp12
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.