Problem with inetd & Python

Gordon McMillan gmcm at hypernet.com
Wed Nov 28 19:42:43 EST 2001


iwk wrote:

[...]
> According to the little information I found, a process being started by
> (x)inetd could use stin & stout to transfer data from and to the
> client. And when I telnet to a script which justs writes data to
> sys.stdout it works: al data is being displayed on the screen of the
> telnet client 
> 
> However, when I try to *read* data from sys.stdin, nothing works 
> anymore, not even the writing to sys.stdout

Try starting Python with -u (unbuffered).

- Gordon



More information about the Python-list mailing list