Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to run QProcess in background?

How to run QProcess in background?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 840 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gauravkumar1491
    wrote on last edited by
    #1

    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.

    JKSHJ 1 Reply Last reply
    0
    • G gauravkumar1491

      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.

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved