diff options
author | James Pannacciulli <jpnc@jpnc.info> | 2017-09-16 21:45:25 -0700 |
---|---|---|
committer | James Pannacciulli <jpnc@jpnc.info> | 2017-09-16 21:45:25 -0700 |
commit | cefdbe4537c24d38b60f78489097c2615ee8f4d9 (patch) | |
tree | c918e9d636f0b00e3358a486230d037151dfbe7f /README.md | |
parent | e04970780bfd9e3b9dc96f90515abba4ae6de605 (diff) | |
download | parssh-cefdbe4537c24d38b60f78489097c2615ee8f4d9.tar.gz parssh-cefdbe4537c24d38b60f78489097c2615ee8f4d9.tar.bz2 |
add a couple more examples to README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -14,7 +14,22 @@ Instructions parssh --help ``` -- Export functions and variables from local Bash session to remote hosts and execute: +- Run simple command on listed servers from list: ``` -parssh "$(declare -f functions; declare -p variables); functions" < serverlist +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 +``` + +- Export FUNCTIONS and VARIABLES from local Bash session to remote hosts from +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 ``` |