Re: screen script

Alan Young <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAPAD24tKf0O0nWnUocvy8igar=LXw0_A=1=REubHCEerw4QOcw@mail.gmail.com>
On Fri, Nov 16, 2012 at 8:59 AM, Nick Atzert <[email protected]> wrote:
> I'm trying to setup a script where I can pass it a list of servers, a screen
> session would start with individual windows for each server and run a script
> against each of those servers.

You can setup a config file to look something like this:

screen -t 'server1' 0 /bin/bash -c "/path/to/server1script"
screen -t 'server2' 0 /bin/bash -c "/path/to/server2script"

Then call 'screen -c configfile'.
--
Alan Young
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.