Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for x in list:
- os.system('program --input %s &' % (x))
- while int(subprocess.check_output("echo $(pgrep -c -P$$)", shell=True)) > n-1:
- time.sleep(0.25)
- subprocess.check_output("pgrep -P$$ | wc -l", shell=True)
Add Comment
Please, Sign In to add comment