in reply to Re^3: kill a process with process name
in thread kill a process with process name

Instead of fork we're trying to use Win32::Job. I want some help on the watch().
I want to kill the spawned process after a maximum timeout / if log file not updated. I tried watch(\&handler, maxTimeout) where handler() monitors the log file, but it dosen't work as I expected.

Replies are listed 'Best First'.
Re^5: kill a process with process name
by BrowserUk (Patriarch) on Apr 16, 2010 at 15:18 UTC
    Instead of fork we're trying to use Win32::Job.

    Can you explain why? There are a dozen or more modules out there for doing this kind of thing on Win32, but none of them are as well-tested, simple and reliable as system 1, $cnd;.

    There are a few good reasons for choosing on or other of those modules under some circumstances. Can you explain your choice?


    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.