aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Pannacciulli <jpnc@jpnc.info>2017-09-17 04:57:09 (GMT)
committerJames Pannacciulli <jpnc@jpnc.info>2017-09-17 04:57:09 (GMT)
commitd80db380adacca4f343c5a3237d0a7e3b1fd0cf8 (patch)
treeaf166b13e5f5ef5060cbc23cd9760c7fbc276a8c
parentcefdbe4537c24d38b60f78489097c2615ee8f4d9 (diff)
downloadparssh-d80db380adacca4f343c5a3237d0a7e3b1fd0cf8.tar.gz
parssh-d80db380adacca4f343c5a3237d0a7e3b1fd0cf8.tar.bz2
markdown adjustments
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index b71b29c..c254a78 100644
--- a/README.md
+++ b/README.md
@@ -15,12 +15,14 @@ parssh --help
```
- Run simple command on listed servers from list:
+
```
parssh "md5sum /bin/bash" < SERVERLIST
```
- Export FUNCTIONS and VARIABLES from local Bash session to remote hosts from
SERVERLIST and execute:
+
```
parssh "$(declare -f FUNCTIONS; declare -p VARIABLES); FUNCTIONS" < SERVERLIST
```
@@ -29,6 +31,7 @@ parssh "$(declare -f FUNCTIONS; declare -p VARIABLES); FUNCTIONS" < SERVERLIST
SERVERLIST and execute with a concurrency of 35, saving and displaying output
along with the commands and meta-data as a header in the 'PROJECT_NAME.out'
and 'PROJECT_NAME.err' files:
+
```
parssh -35 -C -t PROJECT_NAME \
"$(declare -f FUNCTIONS; declare -p VARIABLES); FUNCTIONS" < SERVERLIST