Guest User

Untitled

a guest
Feb 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. for x in list:
  2. os.system('program --input %s &' % (x))
  3. while int(subprocess.check_output("echo $(pgrep -c -P$$)", shell=True)) > n-1:
  4. time.sleep(0.25)
  5.  
  6. subprocess.check_output("pgrep -P$$ | wc -l", shell=True)
Add Comment
Please, Sign In to add comment