diff modules/net_mon/timer_test.py @ 20:1a13a4ecf931

can not recive post-requests wich should deliver if a server is up or down. Updated after a refresh of the webpage, wich will automatically done after 5 seconds
author sean
date Wed, 12 Aug 2015 13:45:58 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/net_mon/timer_test.py	Wed Aug 12 13:45:58 2015 +0200
@@ -0,0 +1,18 @@
+#!/usr/bin/env python3
+
+""" <DECRIPTION>
+
+author: Sean Engelhardt <sean.engelhardt@intevation.de>
+
+This is Free Software unter the terms of the
+GNU GENERAL PUBLIC LICENSE Version 2 or later.
+See http://www.gnu.org/licenses/gpl-3.0.txt for details
+"""
+
+import time, threading
+
+def foo():
+    print(time.ctime())
+    threading.Timer(10, foo).start()
+
+foo()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)