This works on Linux, but not Win32. Win32 just gives me EOF.. # echo foo|test.py where test.py is: import sys print sys.stdin.readline() WTF?