diff --git a/bindings/java/src/org/hyperic/sigar/cmd/Shell.java b/bindings/java/src/org/hyperic/sigar/cmd/Shell.java index 6de431cc..75643954 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/Shell.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/Shell.java @@ -171,6 +171,10 @@ public class Shell extends ShellBase { return this.foundPids; } + public long[] findPids(String query) throws SigarException { + return findPids(new String[] { query }); + } + public void readCommandFile(String dir) { try { File rc = new File(dir, RCFILE_NAME);