opening multiple windows for ssh into multiple nodes a la xpanes #5108
-
I'm a former tmux user and I used xpanes when I needed to open multiple panes in the same tmux window, each ssh'd into a remote node, and broadcast commands to them all. I'm trying to do something similar with kitty and I came up with this shell function so far:
Usage: kpanes host1 host2 host3 ... I found that if I did not put the sleep that the socket file would not be there and ready for the next kitty commands. Is there a way to wait for the socket to be ready or to have the initial kitty command automagically background itself when ready and allow the rest of the script to carry on? Maybe I would have to make a kitten for this instead of trying to script it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Just use the broadcast kitten.
|
Beta Was this translation helpful? Give feedback.
-
Ah your question is about how to open multiple kitty windows at startup? Use kitty sessions for that. You can dynamically generate the session file. If you want to use remote control then just wait for the socket to be ready, any number of tools like socat/netcat and similar can do that. |
Beta Was this translation helpful? Give feedback.
Ah your question is about how to open multiple kitty windows at startup? Use kitty sessions for that. You can dynamically generate the session file. If you want to use remote control then just wait for the socket to be ready, any number of tools like socat/netcat and similar can do that.