screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Start multiple screen-sessions per script


From: Axel Beckert
Subject: Re: Start multiple screen-sessions per script
Date: Mon, 2 Mar 2015 15:30:39 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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            | address@hidden  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | address@hidden (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]