Re: Start multiple screen-sessions per script

kjonca-h7QdYz1kt/[email protected] (Kamil Jońca)
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
kjonca-h7QdYz1kt/[email protected] (Kamil Jońca) writes:

> Frank Röhm <[email protected]> writes:
>
>> Hello
>>
>> 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), but each session should directly start a command.
>>
> I think it should be named session ("test" in my example)
>
>
> screen -d -m -S test  
> screen -S test -X screen lynx pl.wikipedia.org  
> screen -S test -X screen lynx de.wikipedia.org  
>

after reviewing my answer I would emphasize, that most important thing
is "-X" switch here.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
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.