Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qprocess not returning the correct state()
dummys last edited by
I'm using pyqt5.
self.myprocess = QProcess()
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"
dummys last edited by dummys
@jsulm Hmm I'm not trying to launch ps... I launch /usr/bin/asterisk. I do the ps in a terminal just to check if the process has been created and is running.