Windowsのバックグラウンドで実行されている簡単なスクリプトがあります。何かが起こったら開始します。スクリプトが実行されていることをどのように検出できますか?
import threading
def sayhello():
print "hello world"
global t #Notice: use global variable!
t = threading.Timer(5.0, sayhello)
t.start()
t = threading.Timer(5.0, sayhello)
t.start()