|
|
10.4: Monitor file system events in real time
The command line tools linked in the hint all log events as they happen. The disadvantage of that is that filesystem activity by several processes are all mixed up. Using Garion's Python bindings, mentioned above, I whipped up a little script that sorts the file system events by PID. This makes it easier to examine filesystem changes caused by a particular app.
To use it, you'll need to copy the file:
from the bindings module, linked above, into:
(You can't do a normal Python install unless you have pyrex installed.)
Then simply paste the following code into a text file, and save it in:
and
Here's the script (you can name it whatever you want):
To use the script, type in the terminal, launch your installer, or whatever. When you're done, terminate with ctrl-c, and all filesystem events recorded while the script was running will be output, sorted by process id.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|