Qprocess not returning the correct state()
Unsolved
General and Desktop
-
Hi,
I'm using pyqt5.
My code:
self.myprocess = QProcess()
self.myprocess.start(self.mycommandline)
print self.myprocess.state()When I ps -aux I see the process has been launched and is working but when I call the state() method it returns 0.
When the process start I get a "1" but after I get a 0.
Several other process is launched correctly with this technics and I get "2" in the state.
what can I do to debug this issue ?
Thanks for help. -
Did you try to use absolute path to the ps command?
Like: "/bin/ps -aux"