21 lines
405 B
Bash
21 lines
405 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Read in variables
|
||
|
set -a
|
||
|
source "$(dirname "$0")/vars.sh"
|
||
|
|
||
|
cd $(dirname "$0")
|
||
|
rm -rf data
|
||
|
|
||
|
tmux new-session -s 'beacon_node' -d
|
||
|
|
||
|
# maybe these should be moved to a user config file
|
||
|
tmux set-option -g history-limit 999999
|
||
|
tmux set -g mouse on
|
||
|
|
||
|
tmux send-keys -t 0 './start.sh' Enter
|
||
|
tmux new-window -n "demo_node" "./wait_master_node.sh && ./run_node.sh $NUM_NODES"
|
||
|
|
||
|
tmux attach-session -d
|
||
|
|