Imagine I have a command that produces lots of output and a return code, and I need to run it frequently (e.g. every minute) in a loop.
Is it possible to send the output of the command to a different tmux pane? Then I could split the current pane and see the long output (scrollable) in one of them and a list like 10:00 - Returned 7 \n 10:01 - Returned 5 \n 10:03 - Returned 9 in the current one.
So far, I've only found ways to execute commands in different tmux panes, which is not what I need. I need just a way to pipe the output of the command to another pane which then displays it.