InstallPDSH » History » Version 2

Version 1 (Anonymous, 08/30/2007 12:32 PM) → Version 2/4 (Anonymous, 10/01/2007 12:04 PM)

= Install PDSH =
This document discribes how to install the Parallel Distributed Shell (PDSH), which allows to execute the same command in parallel on multiple machines.

== Download ==
Download the source packages of the latest PDSH release from [http://downloads.sourceforge.net/pdsh/].

== Installation ==
Install the sources:
{{{
rpm -ivh pdsh-RELEASE.src.rpm
}}}

Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":
{{{
%define _defaults ssh exec pam
}}}

Prepare and compile the RPM binaries:
{{{
rpmbuild -v -bb -bi /usr/scr/redhat/SPECS/pdsh.spec
}}}

Install the RPM binaries:
{{{
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-exec-2.14-1.x86_64.rpm
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-ssh-2.14-1.x86_64.rpm
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-2.14-1.x86_64.rpm
}}}

== Usage ==
{{{
pdsh -w s0[1-4] procksi[1-4]-priv COMMAND
}}}