Often times I want to kill process that I believe has changed its command name (I think through setproctitle()
or something similar).
Apparent pkill
, pgrep
, and friends do not read the new command names (ie ruby process renames its command, pkill still sees it as ruby
and not delayed_job
).
However ps
and h?top
do.
Is my only resort greping/awking ps
to kill these kinds of processes or am I missing something?