Re: Start multiple screen-sessions per script

Axel Beckert <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Organization DeuxChevaux.org -- The Citr oën 2CV Database
Message-ID <[email protected]>
Hi,

On Mon, Mar 02, 2015 at 10:59:44AM +0100, Frank Röhm wrote:
> is it possible to start multiple screen sessions with each session
> with an own command which is immediately started in one script? I
> want to start only one screen, and in this screen I need many
> sessions (normally started with ^A,C for create),

I'm not sure what's the correct term for it, but it's surely not
"screen session". What you mean is all scripts running the _same_
"screen session". I'm tempted to call it a "screen window", but since
there can be screen windows without any command running inside, I'd
expect that there must be a separate term for what holds a process
which again can be inside a "screen window".

What I did to solve this for myself was to write a script which
generates a temporary .screenrc (named differently) which basically
contains the line "source ~/.screenrc" and then one "screen …" line
per command I want to run in its own screen window inside that
session.

After the file has been created, the same script which created the
temporary .screenrc calls "screen -c that.temporary.screenrc" and
deletes the temporary .screenrc afterwards again.

The script where I implemented this is at
https://github.com/xtaran/ratpoison-desktop/blob/master/bin/terms#L34

		Kind regards, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | [email protected]  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | [email protected] (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)

_______________________________________________
screen-users mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.