Python 2.6 Global Variables

VYAS ASHISH M-NTB837 ashish.vyas at
Thu Oct 29 11:25:24 CET 2009

Dear all

How do I write a code that gets executed 'every x' minutes?

I know how to do it 'after x' minutes, I do the following:

def doAtTimerFire(): 
	""" The things I want to do 'after x' minutes go here. """

And then from main code, I do this:

tmr = threading.Timer(timeInSeconds, doAtTimerFire)

Please help.

Ashish Vyas

More information about the Python-list mailing list