Do you ever find yourself wanting to open several terminal windows and send the same commands to all of them? I’ve had this need many times, and I’ve never found a completely satisfactory solution. I’ve also known a lot of people who’ve written various sets of scripts to help them accomplish such tasks.
In no particular order, here are a few ways I’ve done this in the past:
- Facebook’s pmysql client
- The dsh tool
- Several screen windows named remoteXXX, followed by a bash
while read cmd; do screen …