In my .screenrc file, I have this line to open one screen window:
screen -t "normal"
And this line to open another window and run top:
screen -t "top" top
Those work just fine so I wanted to immediately run df && ls -alh
in a third window, so I placed this line into the .screenrc:
screen -t "df" df && ls -alh
The df window never appears so I thought the && may be the cause of the problem and tried it with just df.
screen -t "df" df
The df window still fails to appear.
Question: How can I run one command followed by another in the same screen window via screenrc? I'd like for it to behave exactly as it does in bash. Thanks for any advice.