On Mon, 2009-05-04 at 23:50 -0700, CTO wrote: > You might want to try http://pyinotify.sourceforge.net/. Works well on > Linux systems. Otherwise, I'd watch the mtime on the file and fork to > handle the change. >
pyinotify works really well. If you need to watch a file, simply use the IN_MODIFY watch to fire off a notification when the file changes. Then you can use that event in anything you may need. I put up some basic pyinotify usage here: http://www.paulscott.za.net/index.php?module=jabberblog&postid=ps123_2560_1240747637&action=viewsingle but if you need some more help with it, read the docs and then ask me also -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- -- http://mail.python.org/mailman/listinfo/python-list