Skip to content

Instantly share code, notes, and snippets.

@Diederikjh
Created February 7, 2025 20:03
Show Gist options
  • Save Diederikjh/56200e2c99a26d3f8ee7e1bc7a560752 to your computer and use it in GitHub Desktop.
Save Diederikjh/56200e2c99a26d3f8ee7e1bc7a560752 to your computer and use it in GitHub Desktop.
Window split output
#!/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