tmux_sessions.sh 369 B

123456789101112131415161718
  1. #!/bin/sh
  2. set -e
  3. # Start a tmux session with a minerd daemon and a darkfid node
  4. if [ "$1" = "-vv" ]; then
  5. verbose="-vv"
  6. shift
  7. else
  8. verbose=""
  9. fi
  10. tmux new-session -d
  11. tmux send-keys "../../../minerd ${verbose} -c minerd.toml" Enter
  12. sleep 1
  13. tmux split-window -v
  14. tmux send-keys "LOG_TARGETS='!sled,!net' ../../../darkfid ${verbose} -c darkfid.toml" Enter
  15. tmux attach