Are there alternatives to pgrep and pkill commands on Mac OS X or should I just create aliases for them using other commands available for me?
|
feedback
|
|
following should help for pgrep | |||
|
feedback
|
|
You could use MacPorts: Here's the result of
| |||||
feedback
|
|
Assuming that you are using some relatively recent version of Bash in the Mac, you could write your own version of
as for
| |||||||||
feedback
|
|
On OS X Lion with Homebrew:
This downloads, builds and installs pgrep. | ||||
|
feedback
|
|
Proctools includes | |||
feedback
|
|
you could try killall. It kills processes by name. Any processes that match the string you pass in are killed.
If you do
it will show you a list of processes that would be killed like below.
If you want a different signal do the following
| |||
|
feedback
|
