Re: os.popen and lengthy operations

2007-09-26 Thread Dmitry Teslenko
Hello! On 24/09/2007, Tommy Nordgren <[EMAIL PROTECTED]> wrote: >Your problem is that you are not reading the standard output and > standard error streams in the correct way. > You need to do the reading of standard out and standard err in > parallell rather than sequentially. > The called

Re: os.popen and lengthy operations

2007-09-23 Thread Tommy Nordgren
On 20 sep 2007, at 08.31, Dmitry Teslenko wrote: > Hello! > I'm using os.popen to perform lengthy operation such as building some > project from source. > It looks like this: > def execute_and_save_output( command, out_file, err_file): > > import os > > def execute_and_save_output( command, out_f

Re: os.popen and lengthy operations

2007-09-20 Thread tokland
On 20 sep, 08:31, "Dmitry Teslenko" <[EMAIL PROTECTED]> wrote: > I'm using os.popen to perform lengthy operation such as building some > project from source. > def execute_and_save_output( command, out_file, err_file): > (i,o,e) = os.popen3( command ) You should consider using the higher

Re: os.popen and lengthy operations

2007-09-20 Thread Marc 'BlackJack' Rintsch
On Thu, 20 Sep 2007 10:31:43 +0400, Dmitry Teslenko wrote: > I'm using os.popen to perform lengthy operation such as building some > project from source. > It looks like this: > def execute_and_save_output( command, out_file, err_file): > > import os > > def execute_and_save_output( command, out

os.popen and lengthy operations

2007-09-19 Thread Dmitry Teslenko
Hello! I'm using os.popen to perform lengthy operation such as building some project from source. It looks like this: def execute_and_save_output( command, out_file, err_file): import os def execute_and_save_output( command, out_file, err_file): (i,o,e) = os.popen3( command ) try: