tmux_sessions.sh 605 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. set -e
  3. # Start a tmux session with a lilith node and two fud nodes.
  4. # Path to used binaries
  5. LILITH="../../../lilith -c lilith_config.toml"
  6. FUD="../../../fud"
  7. session=fud
  8. if [ "$1" = "-vv" ]; then
  9. verbose="-vv"
  10. shift
  11. else
  12. verbose=""
  13. fi
  14. tmux new-session -d -s $session -n "lilith"
  15. tmux send-keys -t $session "$LILITH $verbose" Enter
  16. sleep 2
  17. tmux new-window -t $session -n "node0"
  18. tmux send-keys -t $session "$FUD $verbose -c fud_config0.toml" Enter
  19. sleep 2
  20. tmux new-window -t $session -n "node1"
  21. tmux send-keys -t $session "$FUD $verbose -c fud_config1.toml" Enter
  22. tmux attach -t $session