lotus/scripts/miner-mon.sh

24 lines
473 B
Bash
Raw Normal View History

2020-03-23 14:56:22 +00:00
#!/usr/bin/env bash
SESSION=$(cat /proc/sys/kernel/random/uuid)
tmux -2 new-session -d -s $SESSION
tmux new-window -t $SESSION:1 -n 'Storage Miner'
tmux split-window -h
tmux select-pane -t 0
2020-07-08 10:38:59 +00:00
tmux send-keys "watch -n1 './lotus-miner info'" C-m
2020-03-23 14:56:22 +00:00
tmux split-window -v
tmux select-pane -t 1
2020-07-08 10:38:59 +00:00
tmux send-keys "watch -n1 './lotus-miner workers list'" C-m
2020-03-23 14:56:22 +00:00
tmux select-pane -t 2
2020-07-08 10:38:59 +00:00
tmux send-keys "watch -n1 './lotus-miner storage list'" C-m
2020-03-23 14:56:22 +00:00
tmux -2 attach-session -t $SESSION