arnaucube
arnaucube/go-dhtPublic Self-hosted repository
go-dht/run-dev-nodes.sh
run-dev-nodes.shRaw
 1#!/bin/sh
 2
 3SESSION='go-dht'
 4
 5tmux new-session -d -s $SESSION
 6tmux split-window -d -t 0 -v
 7tmux split-window -d -t 0 -h
 8tmux split-window -d -t 2 -h
 9
10
11tmux send-keys -t 0 'go run main.go --config config.test0.yaml --debug start' enter
12sleep 2
13tmux send-keys -t 1 'go run main.go --config config.test1.yaml --debug start' enter
14tmux send-keys -t 2 'go run main.go --config config.test2.yaml --debug start' enter
15sleep 1
16tmux send-keys -t 3 'go run main.go --config config.test3.yaml --debug start' enter
17
18tmux attach