(dupe note) This is not a dupe of How to set up tmux so that it starts up with specified windows opened?. That question revolves around configuring tmux, and none of the answers there provide an answer to this question. (end note)
Suppose I have two commands
tail -f log1
tail -f log2
How can I programatically call tmux to split a window horizontally and run each of the commands in its own pane, something similar to:
for i in log1 log2; do xterm -e tail -f $i& done