I have a script that writes to stdout like this:
# Send.py
import time
while(1):
    print "hello"
    time.sleep(0.1)
Now I have another script that needs to read it as such:
# Listen.py
while(1) :
    print "reading.."
    data = sys.stdin.read()
    print data
python Send.py | python listen.py
Unfortunately, this just stops on reading and nothing is every printed. Why is that?
 
     
     
    