Skip to content

tjwebb/node-pgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pgrep

NPM version Build status Dependency Status

Install

$ npm install pgrep --save

Usage

var pgrep = require('pgrep');
pgrep.exec({
    euid: 'tjwebb', // owner of process
    full: true,     // whether to match full command line
    parent: 12587   // parent PID
  })
  .then(function (pids) {
    // handle the pids
  });

API

.exec

Returns Promise containing a list of the matching PIDs.

@param @description \
options.euid effective user id
options.full match the full command line
options.parent parent process ID

Manpage

(http://linux.die.net/man/1/pgrep)

License

MIT

About

pgrep api for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published