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?
|
|
|
following should help for pgrep |
|||
|
|
|
You could use MacPorts: Here's the result of
|
|||||
|
|
Assuming that you are using some relatively recent version of Bash in the Mac, you could write your own version of
as for
|
|||||||||
|
|
On OS X Lion with Homebrew:
This downloads, builds and installs pgrep. |
||||
|
|
|
Proctools includes |
|||
|
|
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
|
|||
|
|
