add findPids(String) helper

This commit is contained in:
Doug MacEachern 2008-05-12 22:06:50 +00:00
parent 4f4d950980
commit 81a19482a0
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ public class Shell extends ShellBase {
return this.foundPids; return this.foundPids;
} }
public long[] findPids(String query) throws SigarException {
return findPids(new String[] { query });
}
public void readCommandFile(String dir) { public void readCommandFile(String dir) {
try { try {
File rc = new File(dir, RCFILE_NAME); File rc = new File(dir, RCFILE_NAME);