plan9front/rc/bin/stop

6 lines
110 B
Plaintext
Raw Normal View History

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