plan9fox/rc/bin/stop

5 lines
105 B
Text
Raw Permalink Normal View History

#!/bin/rc
~ $#* 0 || ps | sed -n '/^'$user' .* '$1'$/s%[^ ]* *%~>/proc/%
s% *.*%/ctl%
s%~%echo stop%p'