From 2051725c4a7718911bbc11f1e29d284e6933d333 Mon Sep 17 00:00:00 2001 From: Jim Pannacciulli Date: Mon, 20 Apr 2015 12:19:21 -0700 Subject: Small additions to usage and readme --- README.md | 5 +++++ pars.sh | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3