Re: Getting stdout from other processes

2008-02-23 Thread Matthias Vogelgesang
Hi, Miki wrote: > The current "official" module to use is subprocess (pipe = > Popen([client], stdout=PIPE)) > However if the client is sending data, reading from the pipe.stdout > will block the server. > If you *need* to wait, then you can use pipe.wait(), otherwise do as > Diez suggested and ha

Re: Getting stdout from other processes

2008-02-22 Thread Miki
Hello Matthias, > as I found out, it is possible to get the output of other programs > using os.popen() and read from it. However this method is blocking for > server processes and programs that don't stop immediately. Has anyone > an idea how to get the output of such programs? The current "offic

Re: Getting stdout from other processes

2008-02-22 Thread Diez B. Roggisch
Matthias Vogelgesang schrieb: > Hello, > as I found out, it is possible to get the output of other programs > using os.popen() and read from it. However this method is blocking for > server processes and programs that don't stop immediately. Has anyone > an idea how to get the output of such progra

Getting stdout from other processes

2008-02-22 Thread Matthias Vogelgesang
Hello, as I found out, it is possible to get the output of other programs using os.popen() and read from it. However this method is blocking for server processes and programs that don't stop immediately. Has anyone an idea how to get the output of such programs? -- http://mail.python.org/mailman/l