Menu
blog.headdesk.me
blog.headdesk.me

tmux send input to all panes

Posted on 2018/10/272019/05/15

Run tmux and have it split into 2 panes, each running a separate process, and send input to all panes. Here I start up one container in each pane, then turn on input broadcast.

One can easily modify the commands and have tmux gives control over a cluster of servers. Or ssh to different servers and manage them all at once.

tmux new 'docker run -it --name sh1 5182e96772bf' \; \
split-window 'docker run -it --name sh2 5182e96772bf' \; \
setw sync

This is trememdously useful for myself. To turn off input broadcast, run

^a :setw sync off

Note that I have the prefix key changed from b to a. I’ve been using screen forever and it’s easier for me this way.

facebookShare on Facebook
TwitterTweet

Full text search

Recent Posts

  • Dumping AWS Organization tree
  • Free is the most expensive
  • Terraform conditional resource and blocks
  • Upgrade Ubuntu 16.04 to latest release
  • Inspect and control network traffic on AWS
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (7)
  • others (55)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup cloud coffee coreos distributed filesystem docker ec2 EL8 elasticcache etckeeper featured heartbleed kernel linux mail meltdown mysql php pine python rdp rds Redhat Red Hat RHEL RHEL7 rpm Ryzen snapshot spectre SSL systemd tech terraform ubuntu ubuntu upgrade vector vpn wordpress xtreemfs yum

©2022 blog.headdesk.me | Powered by SuperbThemes & WordPress