pidof & pkill (...& pgrep?)
|Reported by:||fano||Owned by:||nobody|
|Component:||Applications/Command Line Tools||Version:||R1/Development|
|Keywords:||pidof, pkill, pgrep||Cc:|
|Has a Patch:||no||Platform:||All|
Yesterday playing with Haiku I've discovered there isn't a pidof (and consequently) no a pkill equivalent, too.
I think can be useful and I've a sort of "stub" code already created... it is simply a native Haiku application that interrogates BRoster to find the tid (pid) of process that has that name. Having pidof, pkill can be done with a little scripting some like:
pidof $0 | xargs kill