shithub: riscv

ref: 7bf5c61ea57eebbc73ec5fb2d7ffe13c690a5e0a
dir: /rc/bin/stop/

View raw version
#!/bin/rc
U=`{cat /dev/user}
ps | sed -n '/^'$U' .* '$1'$/s%[^ ]*  *%~>/proc/%
s%  *.*%/ctl%
s%~%echo stop%p'