i found the following section in the man page for screen:
Quote:
Originally Posted by man screen
"Thus,
if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a
TELNET connection to the machine foobar (with no flow-control
using the title "foobar" in window #2) and will write a logfile
("screenlog.2") of the telnet session."
|
This is documented under the 'screen' option, section 'Customization'. You can create a separate configuration file for your script and specify it with the screen -c file option. Judging from the manpage it's probably not possible to do this directly from the commandline, except by creating the conf file from the script using, for example,
Code:
echo "screen 1 some_command" > /folder/screenconf_script
echo "screen 2 some_other_command" >> /folder/screenconf_script
etc..
screen -c /folder/screenconf_script
and removing the file again at the end of the script.
I hope this helps you solve your problem.