shithub: riscv

ref: 29b6ad33305dc4a69940d6f636d6f129931cf9f1
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'