plan9fox/rc/bin/Kill
2020-12-23 01:42:52 +01:00

5 lines
124 B
Bash
Executable file

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