[Top][All Lists]

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

Re: screen script

From: Alan Young
Subject: Re: screen script
Date: Fri, 16 Nov 2012 10:48:07 -0700

On Fri, Nov 16, 2012 at 8:59 AM, Nick Atzert <address@hidden> 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

reply via email to

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