Opened 9 years ago

Closed 9 years ago

#8162 closed enhancement (duplicate)

pidof & pkill (...& pgrep?)

Reported by: fano Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/Development
Keywords: pidof, pkill, pgrep Cc:
Blocked By: #1944 Blocking:
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

Change History (1)

comment:1 by diver, 9 years ago

Blocked By: 1944 added
Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.