I am trying to grab stdout from a subprocess.Popen call and although I am achieving this easily by doing:
stdout
subprocess.Popen
cmd = subprocess.Popen(\'
Drop the readlines() which is coalescing the output. Also you'll need to enforce line buffering since most commands will interally buffer output to a pipe. For details see: http://www.pixelbeat.org/programming/stdio_buffering/