Tmux watch system stats

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
view raw tmux_watch.sh hosted with ❤ by GitHub
bash tmux_watch.sh
tmux attach -t watch
view raw to launch hosted with ❤ by GitHub

Laissez un commentaire

Votre adresse de messagerie ne sera pas publiée.

Search
Generic filters
Exact matches only
Filter by Custom Post Type