Created
May 16, 2018 15:01
-
-
Save Eddy-Barraud/3890e872d167695f6e601a8ce9dc7515 to your computer and use it in GitHub Desktop.
Start a tmux with top - hour - iftop ; uses panes ;
This file contains hidden or 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 hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment