in reply to Checking that local Windows machine is idle
Something like above should do the trick. I have never used PMon, so I don't know what the ouput looks like, but I would think it would give you a process's current state in the output.open(LIST, "pmon|"); while(<LIST>) { # analyze output of pmon here... }
|
|---|