From: Mark P. <mar...@gm...> - 2011-03-15 20:32:40
|
Thanks, that does help. I am having a problem now though because it is apparently a lot more difficult to get the PID of a command you run from Java than I realized. I assumed the Process object has it. I tried using SIGAR's ProcessFinder but it never finds my process, probably because it has ended when I am trying to find it. Does SIGAR provide a helper class for running command line apps? I would think that SIGAR could capture the PID and expose it so that you could use its API easier. Likewise, should I assume that if my process has ended I cannot retrieve its process info anyway? Maybe this why the *nix time command wraps another command? |