SHARE
TWEET

Untitled

a guest Jul 15th, 2012 21 Never
  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
RAW Paste Data
Top