GNU screen hacking question

Paul Lussier p.lussier at comcast.net
Fri Jun 8 15:01:47 EDT 2007


Hi all,

Does anyone know of a way to automate the creation of a new window in
GNU screen?  I constantly find myself typing the following keysstrokes
to create a new ssh session to a remote host within screen:

   C-a :screen -t root at foo ssh -l root foo
or
   C-a :screen -t foo ssh  foo

I'd really like to do something like:

  C-a : screen-ssh root foo
  C-a : screen-ssh foo

which resulted in the the creation of a new window entitled
appropriately, with the appropriate ssh connection to the remote host
foo.

Does anyone have any ideas?  I already have several different
.screenrc files which include each other to set my sessions up for the
hosts I always want to be logged into, but this "log into a random
host" scenario has me stumped.

-- 
Seeya,
Paul


More information about the gnhlug-discuss mailing list