shithub: riscv

ref: 5f7a6b7ea3c4ae1b51beffe3309e9b6b0491e71f
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'