On Wed, Jun 29, 2011 at 11:16:52AM +0200, Thomas Dahms wrote:
> Thuban asked to kill more than one program, which cannot be achieved
> in the same way.
> 

Playing with rc, i wrote a mini script which relies on
gnu's ps forest view ( sorry ) and dmenu.

It kills process selected with dmenu, to stop killing, exit dmenu.
#!/usr/local/plan9/bin/rc

fn d_kill{
victim=`{ps xh --forest |dmenu -l 27 |awk '{print $1}'}
while(~ $#victim 1){kill -9 $victim; victim=''; d_kill}
}
d_kill || exit 0

Reply via email to