github.com/qorio/etcd@v0.1.2-0.20131003183127-5cc585af9618/scripts/test-cluster (about) 1 #!/bin/bash 2 SESSION=etcd-cluster 3 4 tmux new-session -d -s $SESSION 5 6 # Setup a window for tailing log files 7 tmux new-window -t $SESSION:1 -n 'machines' 8 tmux split-window -h 9 tmux select-pane -t 0 10 tmux send-keys "./etcd -s 127.0.0.1:7001 -c 127.0.0.1:4001 -d machine1 -n machine1" C-m 11 12 for i in 2 3; do 13 tmux select-pane -t 0 14 tmux split-window -v 15 tmux send-keys "./etcd -cors='*' -s 127.0.0.1:700${i} -c 127.0.0.1:400${i} -C 127.0.0.1:7001 -d machine${i} -n machine${i}" C-m 16 done 17 18 # Attach to session 19 tmux attach-session -t $SESSION