InstallPDSH » History » Version 3

Anonymous, 10/01/2007 12:04 PM

1 3 Anonymous
2 3 Anonymous
h1. Install PDSH
3 3 Anonymous
4 1 Anonymous
This document discribes how to install the Parallel Distributed Shell (PDSH), which allows to execute the same command in parallel on multiple machines.
5 1 Anonymous
6 1 Anonymous
7 3 Anonymous
h2. Download
8 3 Anonymous
9 3 Anonymous
Download the source packages of the latest PDSH release from "h2. Installation
10 3 Anonymous
11 1 Anonymous
Install the sources:
12 3 Anonymous
<pre>
13 1 Anonymous
rpm -ivh pdsh-RELEASE.src.rpm 
14 3 Anonymous
</pre>
15 1 Anonymous
16 1 Anonymous
Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":
17 3 Anonymous
<pre>
18 1 Anonymous
%define _defaults ssh exec pam
19 3 Anonymous
</pre>
20 1 Anonymous
21 1 Anonymous
Prepare and compile the RPM binaries:
22 3 Anonymous
<pre>
23 1 Anonymous
rpmbuild -v -bb /usr/scr/redhat/SPECS/pdsh.spec
24 3 Anonymous
</pre>
25 1 Anonymous
26 1 Anonymous
Install the RPM binaries:
27 3 Anonymous
<pre>
28 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-exec-2.14-1.x86_64.rpm
29 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-ssh-2.14-1.x86_64.rpm
30 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-2.14-1.x86_64.rpm
31 3 Anonymous
</pre>
32 1 Anonymous
33 3 Anonymous
34 3 Anonymous
h2. Usage
35 3 Anonymous
36 3 Anonymous
<pre>
37 3 Anonymous
pdsh -w s0[1-4":http://downloads.sourceforge.net/pdsh/]. COMMAND
38 3 Anonymous
</pre>