fixed kill
This commit is contained in:
parent
6f8b37167d
commit
883f9aaab9
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
|||
#!/bin/rc
|
||||
rfork e
|
||||
U=`{cat /dev/user}
|
||||
for(i){
|
||||
ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p'
|
||||
ps | sed -n '/^'$U' .* '$i'$/s%[^ ]* *%~>/proc/%
|
||||
s% *.* (.*)%/note # \1%
|
||||
s%~%echo kill%p'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue