1
dreampuf 2013 年 10 月 25 日
不想自己维护buf定期输出就用python-sh模块
|
2
stevenyou 2013 年 10 月 25 日
定时调用flush(). 还有种方法
http://stackoverflow.com/questions/1606795/catching-stdout-in-realtime-from-subprocess 提到用pexpect |
3
clouder 2013 年 10 月 25 日
fd=os.poopen(cmd)
print fd.read() fd.close() |
4
lixm 2013 年 10 月 25 日
non-block IO就可以了, 可以参考这个 https://gist.github.com/7148531
|
5
emptyhua 2013 年 10 月 25 日
|
6
xierch 2013 年 10 月 25 日
这是得在 exe 里调用 flush 吧..?
|
8
tommark OP |
9
wynemo 2013 年 10 月 26 日
其实stdout=sys.stdout 应该就可以了吧。。。
|