4 lines
115 B
Bash
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'
|
|
}
|