I am trying to write a script that creates a new screen session and creates 4 windows within it. I am able to create the screen session,
finding it difficult to find out how to replicate Ctrl+A+C, in script to create window.
Way to create a screen windows from shell script
gnu-screenscripting
Best Answer
Start screen in detached mode, and make it run your command inside it::
Now you can attach to newsession session and check that there are 10 windows and hello0 .. hello9 is displayed in each window.