Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25053

Record process ID of spawned process on Windows

    XMLWordPrintable

Details

    Description

      Follow-up to JENKINS-22249 for WindowsBatchScript.

      http://serverfault.com/questions/126502/how-to-get-own-process-pid-from-the-command-prompt-in-windows/126643#126643 is the only thing I can find for Windows. Ugly!

      Attachments

        Issue Links

          Activity

            ganthore Mark Austin added a comment -

            With some modifications, perhaps using the process of capturing the PID from the attached bat script could help us track things better.

            AFAIK, the wmic command has been available for quite some time, should go as far back as windows xp and server 2003, so I doubt we'd cause noticeable breakage by calling out to this tool.

            ganthore Mark Austin added a comment - With some modifications, perhaps using the process of capturing the PID from the attached bat script could help us track things better. AFAIK, the wmic command has been available for quite some time, should go as far back as windows xp and server 2003, so I doubt we'd cause noticeable breakage by calling out to this tool.
            jglick Jesse Glick added a comment -

            As perĀ JENKINS-47791, do not do this; rather port the log liveness check.

            jglick Jesse Glick added a comment - As perĀ  JENKINS-47791 , do not do this; rather port the log liveness check.
            jglick Jesse Glick added a comment -

            I suspect the new wrapper written by carroll for JENKINS-25503 renders this obsolete.

            jglick Jesse Glick added a comment - I suspect the new wrapper written by carroll for JENKINS-25503 renders this obsolete.

            People

              jglick Jesse Glick
              jglick Jesse Glick
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: