[K12OSN] OT linux utility to run command on many systems simultaneously

Chris Hobbs chobbs at silvervalley.k12.ca.us
Wed Mar 3 15:11:01 UTC 2004


dalen wrote:
> I seem to recall reading about a linux utility that can run a command on 
> many machines at once, but I can't remember the name.  Does anyone know 
> of a utility like this?  There are many times that I need to run the 
> same command on many machines.  For example, say I want to add a new 
> user "joe" to machine moe larry and curly.   I would then run "some_util 
> adduser joe" and the user would be added to all machines listed in a 
> config file via ssh.

for i in server1 server2 server 3 server4; do ssh $i -c adduser joe; done

I think that would do ya.

-- 
Chris Hobbs       Silver Valley Unified School District
Head geek:              Technology Services Coordinator
webmaster:   http://www.silvervalley.k12.ca.us/~chobbs/
postmaster:               chobbs at silvervalley.k12.ca.us
pgp:  http://www.silvervalley.k12.ca.us/~chobbs/key.asc





More information about the K12OSN mailing list