InstallPDSH » History » Version 3
Version 2 (Anonymous, 10/01/2007 12:04 PM) → Version 3/4 (Anonymous, 10/01/2007 12:04 PM)
h1. = 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.
h2.
== Download
==
Download the source packages of the latest PDSH release from "h2. [http://downloads.sourceforge.net/pdsh/].
== Installation
==
Install the sources:
<pre>
{{{
rpm -ivh pdsh-RELEASE.src.rpm
</pre>
}}}
Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":
<pre>
{{{
%define _defaults ssh exec pam
</pre>
}}}
Prepare and compile the RPM binaries:
<pre>
{{{
rpmbuild -v -bb /usr/scr/redhat/SPECS/pdsh.spec
</pre>
}}}
Install the RPM binaries:
<pre>
{{{
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
</pre>
h2. }}}
== Usage
<pre>
==
{{{
pdsh -w s0[1-4":http://downloads.sourceforge.net/pdsh/]. s0[1-4] COMMAND
</pre>
}}}