Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Loop to Execute a command every xx seconds
- import time
- import os
- i = 90 ## seconds before the loop runs again
- os.system(r"otronivel.exe") ## run the command at start
- while True:
- while i > 0:
- os.system('cls')
- print "Next Run In", i ## print the timer
- time.sleep(1)
- i -= 1
- os.system('cls') ## run the command again for loop
- ##print "Happy Birthday!"
- os.system(r"otronivel.exe") ## command to execute
- i = 90 ## seconds same seconds as the first
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment