plan9fox/rc/bin/kill
2011-03-30 19:35:09 +03:00

4 lines
115 B
Bash

#!/bin/rc
for(i){
ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p'
}