tmux_sessions.sh 589 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. # Start a tmux session with two consensus nodes and a non-consensus node, and
  4. # a faucet that's able to mint tokens.
  5. tmux new-session -d
  6. tmux send-keys "LOG_TARGETS='!sled' ../../darkfid -v -c darkfid0.toml" Enter
  7. sleep 2
  8. tmux split-window -v
  9. tmux send-keys "LOG_TARGETS='!sled' ../../darkfid -v -c darkfid1.toml" Enter
  10. sleep 2
  11. tmux split-window -h
  12. tmux send-keys "LOG_TARGETS='!sled' ../../darkfid -v -c darkfid2.toml" Enter
  13. sleep 2
  14. tmux select-pane -t 0
  15. tmux split-window -h
  16. tmux send-keys "LOG_TARGETS='!sled,!net' ../../faucetd -v -c faucetd.toml" Enter
  17. tmux attach