shithub: riscv

ref: d79754b4c8f2d23a4f27d9a889efd896bcbc8a2f
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'