Thanks Piotr, QProcess did the trick. 

process = QProcess(iface)
process.start('dir')
process.waitForFinished()
returnedstring = str(process.readAllStandardOutput())
print returnedstring
process.kill()



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/how-to-run-an-external-program-from-QGIS-and-catch-its-output-tp5129610p5130161.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to