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.04:10:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487650248.97.0.335604428124.issue29609@psf.upfronthosting.co.za>
In-reply-to
Content
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 prevent the top command's output from being printed to the terminal. Now I need a way to actually work with that output. Would you know a way to do this?

I can't use the communicate() function because it blocks until the top command quits.
History
Date User Action Args
2017-02-21 04:10:49pyguysetrecipients: + pyguy, ronaldoussoren, ned.deily
2017-02-21 04:10:48pyguysetmessageid: <1487650248.97.0.335604428124.issue29609@psf.upfronthosting.co.za>
2017-02-21 04:10:48pyguylinkissue29609 messages
2017-02-21 04:10:48pyguycreate