Who are you?
"I take the long road" -guy (this has been me for years and years)
- ps -ax | grep <something describing my process>
- look for the <pid>
- type kill -s 9 <pid>
"I made a shortcut" -guy
Make a clever script which uses ps | grep output, cut, awk or whatever to get the pid for the kill.
or pgrep first if I'm insecure about the regex
"I use the existing shortcut" -guy
pkill -9 -f <something describing my process>or pgrep first if I'm insecure about the regex
No comments:
Post a Comment