thread - Execute commands in parallel on a collection of hosts
thread [-i hosts] [-n nthreads] cmd
thread execute commands on a collection of hosts. Each occurence of HOST in the cmd argument is replaced by the name of the target host before execution.
File holding list of hosts
Specify the number of concurrent threads. Default 10.
Prepare a list of hosts:
$ cat > list host1 host2 ^D
Execute a command on this list of hosts:
$ thread -i list ssh HOST uptime
Gerome Fournier <email@example.com>.