InstallPDSH » History » Version 4

Paweł Widera, 12/18/2013 08:06 PM
Text formatting corrected.

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 4 Paweł Widera
Download the source packages of the latest PDSH release from http://downloads.sourceforge.net/pdsh/.
10 1 Anonymous
11 4 Paweł Widera
h2. Installation
12 4 Paweł Widera
13 1 Anonymous
Install the sources:
14 3 Anonymous
<pre>
15 1 Anonymous
rpm -ivh pdsh-RELEASE.src.rpm 
16 3 Anonymous
</pre>
17 1 Anonymous
18 1 Anonymous
Modify /usr/scr/redhat/SPECS/pdsh.spec in order to make SSH the default shell by removing "readline":
19 3 Anonymous
<pre>
20 1 Anonymous
%define _defaults ssh exec pam
21 3 Anonymous
</pre>
22 1 Anonymous
23 1 Anonymous
Prepare and compile the RPM binaries:
24 3 Anonymous
<pre>
25 1 Anonymous
rpmbuild -v -bb /usr/scr/redhat/SPECS/pdsh.spec
26 3 Anonymous
</pre>
27 1 Anonymous
28 1 Anonymous
Install the RPM binaries:
29 3 Anonymous
<pre>
30 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-exec-2.14-1.x86_64.rpm
31 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-rcmd-ssh-2.14-1.x86_64.rpm
32 1 Anonymous
rpm -iv /usr/src/redhat/RPMS/x86_64/pdsh-2.14-1.x86_64.rpm
33 3 Anonymous
</pre>
34 1 Anonymous
35 3 Anonymous
36 3 Anonymous
h2. Usage
37 1 Anonymous
38 3 Anonymous
<pre>
39 4 Paweł Widera
pdsh -Rssh -w s0[1-4] COMMAND
40 3 Anonymous
</pre>