plan9/rc/bin/stop

6 lines
110 B
Plaintext
Raw Permalink Normal View History

2014-02-08 11:19:48 +04:00
#!/bin/rc
U=`{cat /dev/user}
ps | sed -n '/^'$U' .* '$1'$/s%[^ ]* *%~>/proc/%
s% *.*%/ctl%
s%~%echo stop%p'