On Mon, 9 Nov 2009, Sadrul Habib Chowdhury wrote:

And while we talk about bleeding edge screen... is there a way to use the session-name in the config file to load session-spesific settings? Right now i use export SESSION=foo; screen -S $SESSION and use $SESSION in the config, but it's a bit hacky.

With the very latest pair of commits, you can use ${PID} and/or ${STY} in your screenrc (whichever meets your needs in your script). Or did I misunderstand your question?

Unless it has been changed, $STY does contain the pid too. but if its just the session name in the new screen, that would work just fine.

--
  Peder Stray


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to