Readling all input from stdin

Svenne Krap usenet2003 at krap.dk
Mon Jul 28 07:35:02 EDT 2003


Ohh.. It seems that sys.stdin.readlines is missing on my workstation 
(Win2k) but not on the production server (Linux). Hmm. wierd.... Both 
are version 2.2.2

Svenne Krap wrote:

> Hi.
> 
> I am writing a small script, that is called from an external program 
> (the qmail mailserver), I need to capture all input from stdin before 
> continueing the script ..
> 
> I looked for sys.stdin.readlines() but that is not present. I found 
> sys.stdin.readline(), but how do I loop through it (or rather how do I 
> know, when I am finished with looping ?)
> 
> Thanks in advance
> 
> Svenne
> 





More information about the Python-list mailing list