Re: close failed: [Errno 0] No error goes to stdout

2005-08-30 Thread Yoav
Steve Holden wrote: > Yoav wrote: > >> I run a Java command line program. The point is, that it's not the >> program that output this error message for sure. And I don't expect >> popen3() to catch and report errors. I just want to keep my screen >> output clean, and I expect popen3() to run th

Re: close failed: [Errno 0] No error goes to stdout

2005-08-29 Thread Steve Holden
Yoav wrote: > I run a Java command line program. The point is, that it's not the > program that output this error message for sure. And I don't expect > popen3() to catch and report errors. I just want to keep my screen > output clean, and I expect popen3() to run the program and not let > anyt

Re: close failed: [Errno 0] No error goes to stdout

2005-08-29 Thread Peter Hansen
(Please don't top-post. It makes quoting difficult and it's hard for people to follow the conversation.) Yoav wrote: > I run a Java command line program. The point is, that it's not the > program that output this error message for sure. Okay. Since you don't provide any proof, we'll have to

Re: close failed: [Errno 0] No error goes to stdout

2005-08-29 Thread Yoav
I run a Java command line program. The point is, that it's not the program that output this error message for sure. And I don't expect popen3() to catch and report errors. I just want to keep my screen output clean, and I expect popen3() to run the program and not let anything slip to the scree

Re: close failed: [Errno 0] No error goes to stdout

2005-08-28 Thread Peter Hansen
Yoav wrote: > I use the following code to the console output: > > def get_console(cmd): > try: > p_in, p_out, p_err = os.popen3(cmd) > except: > pass > out_str = '' > for obj in p_out: > out_str = out_str + obj >

close failed: [Errno 0] No error goes to stdout

2005-08-28 Thread Yoav
I use the following code to the console output: def get_console(cmd): try: p_in, p_out, p_err = os.popen3(cmd) except: pass out_str = '' for obj in p_out: out_str = out_str + obj for obj in p_err: