Closed yehiam6 closed 1 year ago
Can you add the -x
option and see if it works as desired?
i.e:
for srv in `cat hostsList.txt`; do \
echo "[$srv]"
xpanes -x -c "{}" "echo $srv" ;
done
Let me close it. If you need further assistance, please let me know.
Hey, I'm running a bash script that creates an Xpanes and Tmux sessions based on list of hosts (SSH to each host in the list with some extra arguments). The issue now is that every xpanes command is created in a different window instead of one window with split panes.
If I'm running the same command separately (not via the script) it is work as excepted. What am i missing here? or how can i attached all those windows to one splitted window? Here is my code: