Skip to content

metrue/px

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

px

a simple cli to manipulate process.

Usage

  • Build
$ make build
  • Start px daemon
$ sudo ./px-daemon install
$ sudo ./px-daemon start
  • manage your process with px
NAME:
   px - manipulate processes like a boss

USAGE:
   px [global options] command [command options] [arguments...]

VERSION:
   0.7.0

COMMANDS:
     start    start process
     inspect  inspect a processes
     kill     kill a process
     down     terminate a process
     notify   notify a process with signal
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

For example,

$ px start '/bin/sleep 1000'
2019/04/21 19:37:52 pid is 55126

$ px inspect 55126
{
  "pid": 55126,
  "ppid": 1,
  "executable": "sleep",
  "path": "/bin/sleep",
  "state": "S"
  }

$ px kill 55126
2019/04/21 19:39:17 process 55126 was killed