Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use lsof to find 'file in use' culprits' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use lsof to find 'file in use' culprits
Authored by: henry on Jan 30, '04 07:12:49AM

I don't seem to be able to get this to work (either that, or I'm just failing to notice something obvious). To test this I mounted an image file in Finder, then deleted the .dmg file (without ejecting the mounted image). When I try to empty the trash I get the 'File in use' message, but when I enter the command...

lsof /Users/henry/.Trash/foo.dmg

...I don't get any output. I've also tried...

lsof | grep foo.dmg

...but that didn't return anything either. This seems like it could be a very useful command (especially if it can be used via OnMyCommand), if only I could get it to work.

Could it be that a mounted .dmg file isn't registered as the kind of file that lsof looks for?



[ Reply to This | # ]
Use lsof to find 'file in use' culprits
Authored by: semiotek on Feb 05, '04 11:27:09AM

Doesn't work for me either - Nick



[ Reply to This | # ]