My Bash-Foo is not strong. Right now I have something like
function update_project {
for i in server-{1,2,3,4} ; do
echo "Updating $i"
ssh $i "git pull"
done
}
The number of servers is growing every day, and since each update takes about 20 seconds, I'd like to do the requests concurrently. What's the best way to do this, while still being able to see the output (e.g. failed merges)?