Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: Python  |  size: 0.26 KB  |  views: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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