In article <[EMAIL PROTECTED]>, David Bear <[EMAIL PROTECTED]> wrote:
>I'm using popen2 and getting an extra 1 at the end of my output. I didn't >see where this was explained in the docs so I clearly don't understand the >behavior. My code is simple. > >(input, output) = os.popen2('whackyperlprogram') >results = output.read() >rc = output.close() >print results What if, for comparison, you try running a trivial program that produces no output: (input, output) = os.popen2('/bin/true') results = output.read() rc = output.close() print results Do you still get the "1" at the end? -- http://mail.python.org/mailman/listinfo/python-list