How to run QProcess in background?



  • 0
    down vote
    favorite
    I want to create a QProcess and run it in background. I have a scheduler that maintains a queue of jobs to be launched as QProcesses. These QProcess have commands that are run in an lsf machine. The requirement is that once a QProcess is running I have to poll the QProcess and get its status. To poll the qprocess and get its status it has to be run in background. If it's not run in background, the moment qprocess is launched it will show its status as 0. I want to fetch the status of qprocess running the command in lsf machine.How to run the QProcess in background to get the coreect status. if QProcess running the unix command, QProcess poll should show it as running.


  • Moderators

    Answered at https://stackoverflow.com/questions/45147812/how-to-run-a-qprocess-in-background

    If you are cross-posting from another site, please add the link to the other site so that people don't waste time on a question that's already answered, thanks.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.