shithub: riscv

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