in reply to Re: Windows process suspend
in thread Windows process suspend

Any alternatives ? I need to suspend and resume a process using its pid in Windows.

One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. -Elbert Hubbard

Replies are listed 'Best First'.
Re^3: Windows process suspend
by BrowserUk (Patriarch) on Apr 25, 2013 at 05:02 UTC

    Have you tried Win32::Process?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      Yup I have played with it for some time and it is not solving my purpose because:

      1. I have to launch a process from within a process which I am not in +favour of doing. Also the parameters have to be passed within that fi +le which i only decide at runtime which is easy to implement but incr +eases complexity. 2. My process runs in another computer of a domain whcile the exe are +thrown from the main node ie hub of domain, as a result the suspend c +ommands passed would run in my current node ie hub context not on the + machine on which i am running the process. 3.Win32::Process::Suspend gives me the freedom to suspend exe running +on any node by simply throwing a exe to node and specify its pid to s +uspend it.

      Second point is the main thing against Win32::Process.@BrowserUk and others any suggestions?

      One machine can do the work of fifty ordinary men. No machine can do the work of one extraordinary man. -Elbert Hubbard
        My process runs in another computer

        So how are you getting the pid of that remote process?


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.