What is the easiest way to run a shell script in the background on 10 servers?
What is the easiest way to run a shell script in the background on 10 servers?
I know you can do a for loop like: for in server1 server2 ... server10; do `ssh -l root $i $cmd`; done; but the script takes about a half hour to run, and the for loop won't go to the next server until one has finished. Anyone know of a way to start the $cmd then go to the next server before it finishes? |
Quote:
---------------- Steve Stites |
Check out clusterssh: http://clusterssh.sourceforge.net/
|
I tried cluster-ssh, dsh, and fanout
Couldn't get cluster-ssh to work via a remote connection to the terminal, dsh worked the same way as the for loop, and fanout worked perfectly: http://www.stearns.org/fanout/README.html#fanout |
All times are GMT -5. The time now is 04:43 AM. |