Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Start a tmux with top - hour - iftop ; uses panes ;
#!/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
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
You can’t perform that action at this time.