Continuously running scripts question

jyoung79 at kc.rr.com jyoung79 at kc.rr.com
Mon Jun 28 08:53:04 EDT 2010


Thank you all very much for your replies.  Appreciate your thoughts.  I'll check this out.

Thanks.

Jay

--

> On 2010-06-25, Tim Harig <usernet at ilthio.net> wrote:
>> It sounds to me, since your script is acting on an event, that it
>> would benefit from using something like inotify, or whatever your
>> system equivilant would be (FSEvents for Mac? FAM framework for general
>> POSIX. There are python modules available.), so that your script can
>> react when (and only when) it notices changes to the folder in question.

> pynotify (Linux inotify):
>	http://trac.dbzteam.org/pyinotify
>
> FSEvents wrapper:
>	http://pypi.python.org/pypi/pyobjc-framework-FSEvents/2.2b2
>
> FAM:
>	C libraries and daemon:
>		http://savannah.nongnu.org/projects/fam/
>	Python wrapper:
>		http://sourceforge.net/projects/python-fam/
>
> Similar functionality is available for other platforms; but, you will need
> to look at the documentation for those platforms for information on how to
> access it.



More information about the Python-list mailing list