diff --git a/Changes b/Changes index 4b28c0c..f38eb3c 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ * Rework config handling into a module * Rework cluster handling into a module * Added 'autoclose' functionality - see docs +* Allow "-a 'cmd ; cmd'" to work for multiple remote commands 2011-07-28 Duncan Ferguson - v4.00_11 * Fix '-l ' option (SF bug 3380675) diff --git a/WIP_TASKS b/WIP_TASKS index 7a1dac0..e69de29 100644 --- a/WIP_TASKS +++ b/WIP_TASKS @@ -1 +0,0 @@ -allow for multiple commands with -a 'echo ; echo ; echo' diff --git a/lib/App/ClusterSSH/Helper.pm b/lib/App/ClusterSSH/Helper.pm index 1999953..07c5898 100644 --- a/lib/App/ClusterSSH/Helper.pm +++ b/lib/App/ClusterSSH/Helper.pm @@ -119,7 +119,7 @@ sub script { \$command .= "\$svr"; } } - \$command .= " $command ; $postcommand"; + \$command .= " \\\"$command\\\" ; $postcommand"; warn("Running:\$command\\n"); # for debug purposes exec(\$command); HERE