Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import threading
- import time
- class Update(threading.Thread):
- def __init__(self):
- threading.Thread.__init__(self)
- def run(self):
- while True:
- with open('/tmp/log.txt', 'w') as f:
- f.write('%d\n' % time.time())
- time.sleep(1.0)
- continous = Update()
- continous.daemon = True
- continous.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement