Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import os
- import time
- import subprocess
- def Runit(cmd):
- try:
- subprocess.check_output(cmd)
- return True
- except:
- return False
- getcmd=["/usr/bin/phablet-dev-bootstrap","-c", "-v", "grouper", "/home/madmaze/n7"]
- res = Runit(getcmd)
- print "finished prefetch"
- counter = 0
- while res is False and counter < 50:
- res = Runit(getcmd)
- print "being nice.. waiting 5sec"
- time.sleep(5)
- counter +=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement