Folkert,

I would like to create a script which starts screen with a couple of
windows opened by default.

e.g.:
screen 0: ./m
screen 1: ssh [EMAIL PROTECTED] 'mutt'
screen 2: ssh [EMAIL PROTECTED] 'fi'
screen 3: mutella
screen 4: centericq
screen 5: [just a prompt]
screen 6: ssh [EMAIL PROTECTED]
screen 7: su
etc.

how? :-)

Just add those to your .screenrc; that's what I do.  Here's the top of the 
bottom of my .screenrc:

screen -t base
screen -t caffeine ssh caffeine
screen -t code
    stuff "vcshell Sphorb\015"
screen -t emerge sudo su -

I use the -t so all my windows can have names. The stuff command is also useful, as you see here (the \015 is the equivalent of enter). The ones with no command listed just end up as shell prompts. My .screenrc goes on like this for 45 more lines ( <g> ), but I think this illustrates the idea.


                -- Buddy


_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to