followup links (Re: Continuously running scripts question)

Tim Harig usernet at ilthio.net
Fri Jun 25 12:41:43 EDT 2010


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