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.1.2.tar.gz
.
File metadata
- Download URL: ssh-run-2.1.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d76af260408a1af65986ddb5ec672436e0488ea2a0124a1c052e58fcb91495 |
|
MD5 | 300baa626d6f529045b15587387f3d0a |
|
BLAKE2b-256 | a6c57d4b5dcecdfbb64960c34adfa86f084608d37b9df11206cebe078573c800 |
File details
Details for the file ssh_run-2.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: ssh_run-2.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 448108d323b2c017f0e0fc9045e867733236d0ab75afee4b9f04e66091d429c1 |
|
MD5 | c5238867e1030553bad3a68bbcbf9075 |
|
BLAKE2b-256 | c87c201227db85b2a96c699e599b5614ad72a277b6aa4c3a1f684562071ee6e8 |