Advertisement
Guest User

Untitled

a guest
Jul 15th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. while(True):
  2.  
  3.     gen = subprocess.Popen(['python', 't1.py'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  4.     start = subprocess.Popen(['python','t3.py'], stdin=gen.stdout, stdout=subprocess.PIPE)
  5.     stdout, stderr =  start.communicate()
  6.     print stdout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement