Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Signal string // -signal: signal to send (default: TERM)
Exact bool // -x: match exactly
Full bool // -f: match against full command line
Newest bool // -n: select only the newest process
Oldest bool // -o: select only the oldest process
Count bool // -c: count matching processes
ListOnly bool // -l: list matching processes (don't kill)
User string // -u: only match processes owned by user
Parent int // -P: only match processes with given parent PID
Terminal string // -t: only match processes on terminal
Verbose bool // -v: verbose output
JSON bool // -j: output as JSON
IgnoreCase bool // -i: case insensitive matching
}
Options configures the pkill command behavior
type Result ¶
type Result struct {
PID int `json:"pid"`
Name string `json:"name"`
Cmdline string `json:"cmdline,omitempty"`
Signal int `json:"signal,omitempty"`
Matched bool `json:"matched"`
Killed bool `json:"killed,omitempty"`
Error string `json:"error,omitempty"`
}
Result represents the result of a pkill operation
Click to show internal directories.
Click to hide internal directories.