aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}