[issue29609] Receiving messages from subprocess does not work on Mac OS X

2017-02-20 Thread pyguy
pyguy added the comment: The program does not work the way I wanted it to. I want the output of the top command to be seen only by the python program. The program I made causes the top command to print its output to the terminal. Using subprocess.Popen() with stdout=subprocess.PIPE does

[issue29609] Receiving messages from subprocess does not work on Mac OS X

2017-02-20 Thread pyguy
pyguy added the comment: Using communicate fixed the problem. Here is the program that works for me on Mac OS 10.4.11 with Python 2.7.12: import subprocess import time print("Launch started") program_name = "top" list = [program_name] process = subprocess.Popen(list

[issue29609] Receiving messages from subprocess does not work on Mac OS X

2017-02-20 Thread pyguy
pyguy added the comment: The program failed for me on Mac OS 10.4.11 using Python 2.7.12 and Mac OS 10.6.8 using Python 2.7.13. -- status: pending -> open ___ Python tracker <http://bugs.python.org/issu

[issue29609] Receiving messages from subprocess does not work on Mac OS X

2017-02-20 Thread pyguy
New submission from pyguy: When I use the subprocess module to run a another process, I expect to be able to read the STDOUT and STDERR of the other process. This is not possible on Mac OS X. The attached test program has been tested on Linux and Windows and does work as expected. It pauses