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) while process.poll() == None: print("subprocess still running") print("Value = " + process.communicate()) time.sleep(0.1) print("Exit") Thank you Ned. ---------- resolution: works for me -> fixed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29609> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com