Start a tmux with top – hour – iftop ; uses panes ;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /root/.bashrc | |
tmux kill-session -t watch | |
tmux new -d -s watch | |
tmux send-keys -t watch:0.0 'tmux split-window -h' ENTER | |
tmux send-keys -t watch:0.0 'tmux split-window' ENTER | |
tmux send-keys -t watch:0.0 'tmux split-window' ENTER | |
sleep 1 | |
tmux send-keys -t watch:0.1 'top' ENTER | |
tmux send-keys -t watch:0.2 'iftop' ENTER | |
tmux clock-mod -t watch:0.0 | |
tmux resize-pane -t watch:0.0 -U 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash tmux_watch.sh | |
tmux attach -t watch |