考虑 TMUX
tmux new-session -d -s theSession
for p in {1..30}
do
echo "Welcome to Pane number #$p"
tmux split-window -v -p 140 -t theSession
tmux send-keys -t theSession "./run-exp-scr.sh" Enter
done
tmux attach -t theSession
Run Code Online (Sandbox Code Playgroud)
当我运行脚本时我得到:
no space for new pane
Run Code Online (Sandbox Code Playgroud)
知道如何解决这个问题吗?
谷歌搜索你的错误,我发现了这个邮件列表链接,这似乎意味着你需要告诉 tmux 用eg重新布局事物selectl tiled,以确保有足够的空间。select-layout在循环中添加一个调用:
tmux split-window -v -p 140 -t theSession
tmux select-layout -t theSession tiled
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1480 次 |
| 最近记录: |