Skip to content

Commit 96ab7e0

Browse files
committed
Updated readme
1 parent 25c7789 commit 96ab7e0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ Small wrapper library over paramiko that allows for parallel execution of SSH co
66
.. image:: https://api.travis-ci.org/pkittenis/parallel-ssh.png?branch=master
77
:target: https://travis-ci.org/pkittenis/parallel-ssh
88

9+
************
910
Installation
10-
============
11+
************
1112
To install gevent you need the libevent-dev package installed. Instructions below are for apt-get systems, substitute with your own package manager if necessary.
1213

13-
sudo apt-get install libevent-dev
14-
pip install parallel-ssh
14+
::
15+
$ sudo apt-get install libevent-dev
16+
$ pip install parallel-ssh
1517

18+
************
1619
Usage Example
17-
============
20+
************
1821

19-
```python
20-
from pssh import ParallelSSHClient
21-
hosts = ['myhost1', 'myhost2']
22-
client = ParallelSSHClient(hosts)
23-
cmds = client.exec_command('ls -ltrh /tmp/aasdfasdf', sudo = True)
24-
print [client.get_stdout(cmd) for cmd in cmds]
25-
```
22+
>>> from pssh import ParallelSSHClient
23+
>>> hosts = ['myhost1', 'myhost2']
24+
>>> client = ParallelSSHClient(hosts)
25+
>>> cmds = client.exec_command('ls -ltrh /tmp/aasdfasdf', sudo = True)
26+
>>> print [client.get_stdout(cmd) for cmd in cmds]

0 commit comments

Comments
 (0)