aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Pannacciulli <jpannacciulli@mediatemple.net>2015-04-20 12:19:21 -0700
committerJim Pannacciulli <jpannacciulli@mediatemple.net>2015-04-20 12:19:21 -0700
commit2051725c4a7718911bbc11f1e29d284e6933d333 (patch)
tree1fd7ab2d78f6644ba58ec1e0051fd53b805970b5
parent65f775b0685eb099046ae2e7ae30ca8330991478 (diff)
downloadparssh-2051725c4a7718911bbc11f1e29d284e6933d333.tar.gz
parssh-2051725c4a7718911bbc11f1e29d284e6933d333.tar.bz2
Small additions to usage and readme
-rw-r--r--README.md5
-rw-r--r--pars.sh6
2 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index af797a7..4cfdc2f 100644
--- a/README.md
+++ b/README.md
@@ -13,3 +13,8 @@ Instructions
```
parssh --help
```
+
+- Export functions and variables from local Bash session to remote hosts and execute:
+```
+parssh "$(declare -f functions; declare -p variables); functions" < serverlist
+```
diff --git a/pars.sh b/pars.sh
index 56f0917..02d1c01 100644
--- a/pars.sh
+++ b/pars.sh
@@ -179,6 +179,10 @@ _parssh.usage () {
""\
" < SERVERS"\
" Unless '-s' flag is used, STDIN will be used as list of remote servers."\
- " (Deliniated by newlines)."
+ " (Deliniated by newlines)."\
+ ""\
+ "NOTES"\
+ " Given the nature of entering passwords manually, this function will likely not be"\
+ " very useful without properly authorized SSH keys on all SERVERS."
return 1
}