tmux_sessions.sh 465 B

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