in reply to Re^3: Kill java processes on Windows server
in thread Kill java processes on Windows server

Yes i am able to kill it manually
  • Comment on Re^4: Kill java processes on Windows server

Replies are listed 'Best First'.
Re^5: Kill java processes on Windows server
by BrowserUk (Patriarch) on Jan 22, 2010 at 18:57 UTC

    Have you tried?:

    Win32::Process::KillProcess($pid, $exitcode)

    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.
Re^5: Kill java processes on Windows server
by BrowserUk (Patriarch) on Jan 22, 2010 at 19:05 UTC

    Also, you should be checking that the Open() has succeeded:

    Win32::Process::Open($obj,$pid,1) or die "Failed to open $pid: $^E";

    I was ignoring this possibility as I thought that you would be getting an "$obj uninitialised" error had the called failed, but unfortunately, the author chose to return 0 instead of undef.


    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.