Skip to content

Instantly share code, notes, and snippets.

@heavenshell
Created January 16, 2013 13:53
Show Gist options
  • Save heavenshell/4547254 to your computer and use it in GitHub Desktop.
Save heavenshell/4547254 to your computer and use it in GitHub Desktop.
echomsg 'begin'
python <<EOF
# coding: utf-8
import threading
import time
def func():
for i in range(0, 10):
print i
time.sleep(1)
t1 = threading.Thread(target=func, args=())
t1.start()
t1.join()
EOF
echomsg 'end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment