I am trying to execute command lines in a pyqt application, here is what I am doing so far:
stdouterr = os.popen4(cmd)[1].read()
simple, and for the most part it does work, but when I open up a text file for example, the pyqt programs stops until the text file is closed. Is there a way I can have something like that open and not stop my application.
Edit:
Okay I almost figured it out. I am currently doing this:
Popen(cmd, shell=True,
stdin=None, stdout=None, stderr=None, close_fds=True)
which does want I want it to, but is there a way to read stdout and stderr after the process is done running?
os.popenfamily of functions is deprecated. Use thesubprocessmodule instead.