1 2 3 4 5 6 7 8 9
#!/usr/bin/env python import time, sys for i in range(5): print "tick" time.sleep(1) sys.exit(0)