<div>what is the problem you faced in running it on Linux or windows</div><div>we'll use IDLE only </div><div><br></div><div>on linux platform like this also you can run see below</div><div>ubuntu@siva:~/Desktop$ python</div>
<div>Python 2.6.2 (r262:71600, Oct 7 2009, 11:27:27) </div><div>[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2</div><div>Type "help", "copyright", "credits" or "license" for more information.</div>
<div>>>> import sys</div><div>>>> data=sys.stdin.read()</div><div>hello world</div><div>this is a test (give Cntrl D to exit) </div><div>>>> print data</div><div>hello world</div>
<div>this is a test</div><div><br></div><div>>>> </div><div><br></div><div>(I can put data into some other file as well)</div><div>This is working very well on my PC</div><div><br></div><div>It should work same on the windows too.</div>
<div>but I don't know why its is failing, and thats what i want to know.</div><div>If any other solution is there let know to get it work on windows ( python IDLE) </div><div>welcome</div><div><br></div><div><br></div>
<div>Thanks,</div><div>Siva</div><br><div class="gmail_quote">On Sat, Dec 5, 2009 at 3:44 PM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Saturday 05 December 2009 01:20:12 Siva B wrote:<br>
> for the line of code you given,<br>
><br>
> print type(sys.stdin), sys.stdin<br>
><br>
> the output is:<br>
> <class 'idlelib.rpc.RPCProxy'> <idlelib.rpc.RPCProxy object at<br>
> 0x00BE8090><br>
><br>
> there is no change.<br>
> I have tried it in python2.6 on windows platform.<br>
><br>
> Thanks,<br>
> Siva<br>
><br>
<br>
</div>How did you run this on Linux? How did you run it on Windows? It looks<br>
like you're running it from within IDLE. I don't know IDLE at all, and<br>
don't know how to pass data to its standard input -- can you let us know<br>
what arguments you're using?<br>
<br>
I've tried sys.stdin.read() from inside IDLE on Linux, and it gives me<br>
the same error.<br>
<br>
<br>
----<br>
<font color="#888888">Rami Chowdhury<br>
"Any sufficiently advanced incompetence is indistinguishable from<br>
malice." -- Grey's Law<br>
</font><div><div></div><div class="h5">408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)<br>
</div></div></blockquote></div><br>