I did not read it (yet!), but it looks good, thanks!
➙ Synchronize all your files across Windows, Linux and Mac OS with Dropbox (2GB free storage!). By signing up via this link I'll get some extra space also, thanks!
➙ Multiseat on Ubuntu 10.04
Nice. Bookmarked for later use.
10 respect points awarded.
This is a very simple and elegant interface to inotify, but I do have a question:
How do I get the actual Inotify event (ie - IN_CREATE, IN_MODIFY, etc) to be passed on the command line?
I dont know Python and I have been trying to wing it, but I cant seem to capture the actual event or pass it as Argument 3 to my script.....
example cmd: dirmon.sh [dirmon.py] [EventPath] [INOTIFY EVENT]
Since I am using dir_change as the mask, I am catching the events, but I cannot seem to get which event is matched passed to my script......
Can someone mod dirmon.py so I get the event IN_CREATE, etc... passed as an argument in the cmd ? If I see an example I can do it, but it is probably simple to do - for someone with more experience with python....
TIA
WPH
Can someone point me in the right direction? I am trying to use this to backup my home directory to an external USB drive. When I run it, I get the following error:
Traceback (most recent call last):
File "./dirmon.py", line 5, in <module>
from pyinotify import (WatchManager, Notifier, ProcessEvent,
ImportError: cannot import name ALL_EVENTS
Thanks,
Tim
Bookmarks