This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pyguy
Recipients ned.deily, pyguy, ronaldoussoren
Date 2017-02-21.03:20:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487647214.72.0.523962286263.issue29609@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-02-21 03:20:14pyguysetrecipients: + pyguy, ronaldoussoren, ned.deily
2017-02-21 03:20:14pyguysetmessageid: <1487647214.72.0.523962286263.issue29609@psf.upfronthosting.co.za>
2017-02-21 03:20:14pyguylinkissue29609 messages
2017-02-21 03:20:14pyguycreate