plan9fox/rc/bin/stop
2011-03-30 18:29:07 +00:00

6 lines
110 B
Bash
Executable file

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