[PyQt] Emulate WIN-DOS Capture results live, How to achive?

akumarzen kaymatrix at gmail.com
Mon Apr 20 03:26:37 BST 2009


Instead of os.popen or subprocess to execute SINGLE DOS COMMAND to capture
back its output in python...
Is there anyway I can capture the intermid results simultaneously that
appears in DOS?

Eg:
import os
x = os.popen('ping 127.0.0.1').read()
print x

This print the entire output of PING. But I would like to receive the
RESULTS line by line when PING send out to DOS. Is it possible?
-- 
View this message in context: http://www.nabble.com/Emulate-WIN-DOS-Capture-results-live%2C-How-to-achive--tp23129514p23129514.html
Sent from the PyQt mailing list archive at Nabble.com.



More information about the PyQt mailing list