Re: 'ps -A' command freezes Popen3

2005-08-31 Thread Thomas Guettler
Am Wed, 31 Aug 2005 07:12:49 -0700 schrieb gao_bolin: > Does anybody know why the following lines would freeze python [2.4.1 on > Linux]: > > import popen2 > a = popen2.Popen3('ps -A') > a.wait() Because "ps -A" produces a lot of output to stdout, so that it blocks. It blocks until you read from

'ps -A' command freezes Popen3

2005-08-31 Thread gao_bolin
Does anybody know why the following lines would freeze python [2.4.1 on Linux]: import popen2 a = popen2.Popen3('ps -A') a.wait() Thanks B. -- http://mail.python.org/mailman/listinfo/python-list