From: hyperguy <sig...@hy...> - 2010-07-20 20:02:34
|
Hi, We are having problems getting process info from a short-lived process. In java, if you use ProcessBuilder to create and start the chmod command: chmod +x <some file>, then checking for the process using sigar doesn't seem to work for us. I am using ProcessQuery and PTLQ to lookup the process. If I wrap the invocation of chmod into a shell script and then lookup the process for the shell script, our code seems to detect that. On the mac, the chmod command takes 0.003s, but the wrapper shell script takes 0.063s. So the current thinking is that the process being so short-lived may be the problem. However, maybe the query is the problem? Or something else? I'm wondering if there is either a sigar limitation in detecting a short-lived process, or perhaps, there is another less obvious sigar technique to monitor a short-lived process like chmod? Using our windows-only non-sigar solution to monitor a process, we can detect the short-lived processes; however, we would like a cross-platform solution using just sigar, if that is possible. Thx, Hyperguy |