osx - Fast way to check if file is open on OS X -
is there fast way check if file handle closed command line on os x?
lsof
works, of course, super slow.
you´ll want check out dtrace family man dtrace
.
if you´re interested on pure "file actions" should have @ opensnoop
, builds on dtrace , has been included since mac os x 10.6. can show file in use process (by -p pid or -n name) , watch files -f /path/to/file .
Comments
Post a Comment