How to open screen with many tabs?
How can I execute some commands within each tab, plus giving the main screen window a name to call it again later to execute other commands?
For example, I have a loop this is the code inside it:
gnomeTab+=( --tab -e "cpulimit -p $i -l $limitationPercentage ")
and I run the result after finishing the loop in gnome terminal like this:
gnome-terminal "${gnomeTab[@]}"
I want to do exactly as happens in the gnome terminal to open many tabs within the main terminal window and execute this command. But, I want to re-do this by GNUScreen.
in addition, I want to give the main screen window a name: For example: let it be "screen1"