A tool for running commands on remote servers
Project description
Run a shell command across multiple SSH servers in sequence.
Installation
pip install ssh-run
Usage
Show usage information with:
ssh-run –help
Examples
Run a command on a single remote host:
ssh-run -h example.com – echo hello world
Run a command on multiple remote hosts:
cat hosts | ssh-run -H - – echo hello world
Run a command on hosts matched by a chef search:
knife search -i “chef_evironment:staging” 2>/dev/null | ssh-run -H - – echo hello world
Start a shell for running multiple commands:
ssh-run -h host1 -h host2
Requirements
Runs on Python 2.6 and above, including Python 3.
Licence
ssh-run is licenced under the MIT Licence.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ssh-run-2.3.1.tar.gz
.
File metadata
- Download URL: ssh-run-2.3.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6cb838da1ebf2e483d92545d28801c61b4f511e5ccdc39e1b189384a61335bd |
|
MD5 | f8902f2eda2fbe7d67b7e7309e1342e1 |
|
BLAKE2b-256 | f29a8aa46605322daac681e92d085017a016426c9bc589eb6d8098ea63a6b245 |
File details
Details for the file ssh_run-2.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: ssh_run-2.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17caa530c1035233da20a64d1c99d77b354ac890b88e0c9376b7eaf5b3660abe |
|
MD5 | 0790c022000632188c17543f92dfe231 |
|
BLAKE2b-256 | a980af4a60a8914a871e9e4248be66e21d5d29dcbb7b5f682651782acb24477c |