Renamed new function to 'topby'.
This commit is contained in:
parent
0bd9de0021
commit
b7a65468e4
@ -127,8 +127,8 @@ deblist() {
|
|||||||
}
|
}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
# Run 'top' with list of processes matching name.
|
# Run 'top' by a list of processes matching name.
|
||||||
topof() {
|
topby() {
|
||||||
local name=${1:?name required}
|
local name=${1:?name required}
|
||||||
local pidlist="$(pidof $name | sed 's/ /,/g')"
|
local pidlist="$(pidof $name | sed 's/ /,/g')"
|
||||||
top -p $pidlist
|
top -p $pidlist
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user