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?
|