https://github.com/metrue/px
px = ps + kill
https://github.com/metrue/px
Last synced: 3 months ago
JSON representation
px = ps + kill
- Host: GitHub
- URL: https://github.com/metrue/px
- Owner: metrue
- License: mit
- Created: 2019-04-21T02:32:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T17:19:21.000Z (about 6 years ago)
- Last Synced: 2024-06-21T04:48:13.517Z (11 months ago)
- Language: Go
- Size: 32.2 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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 bossUSAGE:
px [global options] command [command options] [arguments...]VERSION:
0.7.0COMMANDS:
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 commandGLOBAL 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
```