4 ms·
I often use a program called shmux to run commands on a number of remote machines via SSH in parallel. There are many different programs (including fanout) tha
by spudlyo 17y ago
I often use a program called shmux to run commands on a number of remote machines via SSH in parallel. There are many different programs (including fanout) that do this, but I think shmux is the best.
It can be run in both interactive and non-interactive modes. The interactive mode is curses based and lets you easily control how many of your ssh tasks run in parallel, lets you pause and resume, and nicely separates out the stdout and stderr output. The non-interactive modes let you define what success means in terms out output and return code, and splits out output and return codes into separate files for further processing.
- DEinspanjer 17y agoI don't recall if I ever tested out shmux when I was looking for terminal multiplexers. For interactive usage, the best one I ever found was Omnitty. Unfortunately, I was never able to get it to compile for Mac OS X so I normally use it by first sshing in to a remote Linux machine then using omnitty from there to fan out to the cluster I want to play with.