Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QProcess::start: Process is already running
I am using qprocess in my application.
while start qprocess,I got warning QProcess::start: Process is already running.
Ratzz last edited by
Can you show me what have you tried?
QString program = "/home/cosense/test1.sh";
m_myprocess = new QProcess();
qDebug() << m_myprocess->state() ;
qDebug() << "state"<< m_myprocess->state() ;
My observations are before start qprocess , state was running by checking state code using qdeug.
what is inside test1.sh?
If it never finishes/exits it will run for ever.
ls -tr /home/cosense/database/Clinical_data > /home/cosense/sorted1.txt
Ok seems fine.
You can use
to be sure its finished before calling state() ;