I have a script that keeps on dumping some values to the screen. Lets call this script 1
I need the values that gets dumped to the screen to be processed by another python script.Lets call this script2. I Script1 cant be stopped
I currently use python 2.2 so it would be great if someone could provide an example without using subprocess
script 1 looks something like this
import sys
import os
i = 0
while 1:
print i
sys.stdout.write(str(i)+"\n")
i = i + 1
I need to write script2 such that every output generated by script1 is processed by script2
-- edit --
I need it to run on a legacy implementation ie no power shell just the command prompt available in Windows XP