In python run command line application show terminal readout -
i have written python application using wxpython sends commands command line application. application runs lengthy commands, when run in terminal gives lots of feedback , readout whilst running. when it's finished can output print or save file, istead of running command line application blind, python open terminal run application can real time view of what's happening, still terminals return values when finished though. section of current code:
command4 = "/usr/local/itms/share/itmstransporter.woa/itmstransporter -m provider -u username -p password -v extreme" process = subprocess.popen([command4], stdout=subprocess.pipe, shell=true) result4 = process.communicate()[0]
when run not open terminal window, runs blind, can't see going on, commands take long time run, need see whats going on in real time in terminal window, how can make so. running on pc mac.
kind regards.
Comments
Post a Comment