The following doesn’t work given second command doesn’t run until first exits and when I try running first in background using &
, I get following error.
I also tried running first in background using -d -m
, but split doesn’t work.
Must be connected to a terminal.
screen -S test -t foo long_lived_process_1
screen -S test -X split
screen -S test -X focus down
screen -S test -X screen -t bar long_lived_process_2
tmux
could probably solve it: lukaszwrobel.pl/blog/… - section "scripting tmux"tmux
. Still curious to know if this is possible usingscreen
.