Mornin',
A few years ago, i got tired of trying to keep my normal configs (bash,
vim, cvs, screen) in sync on all the machines i had shell accounts on,
so i decided to script it. So i defined one set of configs to be the
master set, and wrote a script on that machine to copy the configs to a
list of other machines/accounts. That was fine, except it took ages.
Anytime a machine wasn't reachable (due to it being off, or the ssh
tunnel being down, mostly), everything just hung waiting for the
connection attempt to time out. So i reworked the script to do the copy
to all the machines/accounts in the list at the same time. It also
prints out, every second, a list of the machines that have yet to
complete. In general, it's quite useful, and i thought someone else
might find it useful too, so here it is:
http://diamond.nonado.net/misc/parallel-update.sh
Steve
P.s. i haven't actually looked at the source of this in a few years, so
it's possible there are ways of simplifying some of it, but hey, it
works ,-)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!