toolbox

thread
Login

NAME

thread - Execute commands in parallel on a collection of hosts

SYNOPSIS

thread [-i hosts] [-n nthreads] cmd

DESCRIPTION

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.

OPTIONS

-i hosts

File holding list of hosts

-n uint

Specify the number of concurrent threads. Default 10.

EXAMPLE

Prepare a list of hosts:

$ cat > list
host1
host2
^D

Execute a command on this list of hosts:

$ thread -i list ssh HOST uptime

AUTHOR

Gerome Fournier <jef@foutaise.org>.