Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Your description is confusing to me, but given your cmds tmux split-window ..., tmux select-layout even-vertical .... and tmux select-pane ... etc, it sounds self-describing. Do these cmds work from the basic cmd-line (without the kubectl get pods ... | while ... wrapper? One of the few times a graphic image could help with question? Or at least an ascii-art drawing? Is there another term? I think of columns being inside of terminal's border. Good luck. Commented Feb 6, 2024 at 1:05
  • 1
    tmux split-window -h -t "$session_uuid" "echo 'Second Column'" – A pane that only executes echo will exit immediately and be destroyed, unless remain-on-exit tmux option is on for it. Please confirm you set this option to on and the behavior I described is not a part of the problem. Commented Feb 6, 2024 at 18:24
  • ahh that makes sense - that's really strange behavior Commented Feb 6, 2024 at 20:17
  • "that's really strange behavior" – It really depends on what you expect or want. See "Terminating the tmux session" in this answer of mine. It seems the asker there wanted exactly the default behavior. You want something else, you need to change the option(s). Neither behavior is strange, there are use cases for each. Commented Feb 7, 2024 at 14:06
  • it's the same concept as starting an ssh session and trying to run a command, I would expect it to say open like opening a terminal app. If you want to exit immediately, then put "exit x", or use a switch to exist Commented Feb 7, 2024 at 16:53