Created
February 7, 2025 20:03
-
-
Save Diederikjh/56200e2c99a26d3f8ee7e1bc7a560752 to your computer and use it in GitHub Desktop.
Window split output
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 | |
# use tmux to output ping and tracepath to the same address on left and right panels or windows | |
# Pass the argument to the two scripts | |
HOST=$1 | |
tmux new-session \; split-window -h \; send-keys "ping -c 20 $HOST" C-m \; select-pane -t 0 \; send-keys "tracepath $HOST" C-m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment