I think the OP wanted to run a single screen program with multiple internal "screens", each running a different program.
Here's one way to do it. screen(1) has a "-c" option to provide a startup file instead of $HOME/.screenrc. And that startup file can start new internal screens.
Example input file:
Code:
# Screen startup file to start multiple commands under multiple screens.
# Start with "screen -c thisfilename"
# Screen 0: Start 'top'
# Screen 1: Start 'tail -F /var/log/syslog'
screen -t top 0 top
screen -t syslog 1 tail -F /var/log/syslog
Save the above to a file, say "fancy.screenrc". Then start screen with:
Code:
screen -c fancy.screenrc
Bookmarks